Class PatternDateTimeFormat

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.DateFormat

        java.text.DateFormat.Field
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_PATTERN
      The default pattern with date and time parts.
      • Fields inherited from class java.text.DateFormat

        AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternDateTimeFormat()
      Creates a new instance of format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PatternDateTimeFormat clone()
      Overrides Cloneable
      java.lang.StringBuffer format​(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)
      protected java.lang.String getName()
      FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
      java.lang.String getPattern()
      Returns the format pattern.
      java.util.Date parse​(java.lang.String source, java.text.ParsePosition pos)
      void readProperties​(org.w3c.dom.Element element)
      Reads the XML properties of a chart format.
      void saveProperties​(java.lang.StringBuilder buffer, int depth)
      Writes the format properties to output.
      void setFormatingProperties​(com.inet.report.chart.format.FormatingProperties properties)
      Sets the location specific formating properties, e.g. locale, time zone, first day of week.
      void setPattern​(java.lang.String pattern)
      Sets the format pattern.
      • Methods inherited from class java.text.DateFormat

        equals, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
      • Methods inherited from class java.text.Format

        format, formatToCharacterIterator, parseObject
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_PATTERN

        public static final java.lang.String DEFAULT_PATTERN
        The default pattern with date and time parts.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PatternDateTimeFormat

        public PatternDateTimeFormat()
        Creates a new instance of format.
        Since:
        8.0
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Returns the format pattern. The pattern should have the Java format, see this class doc.
        Returns:
        the pattern.
        Since:
        8.0
        See Also:
        setPattern(String)
      • setPattern

        public void setPattern​(java.lang.String pattern)
        Sets the format pattern. The pattern should have the Java format, see this class doc.
        Parameters:
        pattern - the pattern (null not permitted)
        Since:
        8.0
        See Also:
        getPattern()
      • setFormatingProperties

        public void setFormatingProperties​(com.inet.report.chart.format.FormatingProperties properties)
        Sets the location specific formating properties, e.g. locale, time zone, first day of week.
        Specified by:
        setFormatingProperties in interface ChartFormat
        Parameters:
        properties - the properties object (null not permitted)
      • format

        public java.lang.StringBuffer format​(java.util.Date date,
                                             java.lang.StringBuffer toAppendTo,
                                             java.text.FieldPosition fieldPosition)
        Specified by:
        format in class java.text.DateFormat
      • parse

        public java.util.Date parse​(java.lang.String source,
                                    java.text.ParsePosition pos)
        Specified by:
        parse in class java.text.DateFormat
      • saveProperties

        public void saveProperties​(java.lang.StringBuilder buffer,
                                   int depth)
        Writes the format properties to output.
        Specified by:
        saveProperties in interface ChartFormat
        Parameters:
        buffer - the output
        depth - the depth of XML indent
      • clone

        public PatternDateTimeFormat clone()
        Overrides Cloneable
        Specified by:
        clone in interface ChartFormat
        Overrides:
        clone in class java.text.DateFormat
        Returns:
        the chart format
      • getName

        protected java.lang.String getName()
        FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
        Returns:
        the name.