Klasse PatternDateTimeFormat

java.lang.Object
java.text.Format
java.text.DateFormat
com.inet.report.chart.format.PatternDateTimeFormat
Alle implementierten Schnittstellen:
ChartFormat, Serializable, Cloneable

public class PatternDateTimeFormat extends DateFormat implements ChartFormat
This is a date time format defined by a pattern.
For more information on date and time patterns see http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
Seit:
8.0
Siehe auch:
  • Felddetails

    • DEFAULT_PATTERN

      public static final String DEFAULT_PATTERN
      The default pattern with date and time parts.
      Siehe auch:
  • Konstruktordetails

    • PatternDateTimeFormat

      public PatternDateTimeFormat()
      Creates a new instance of format.
      Seit:
      8.0
  • Methodendetails

    • getPattern

      public String getPattern()
      Returns the format pattern. The pattern should have the Java format, see this class doc.
      Gibt zurück:
      the pattern.
      Seit:
      8.0
      Siehe auch:
    • setPattern

      public void setPattern(String pattern)
      Sets the format pattern. The pattern should have the Java format, see this class doc.
      Parameter:
      pattern - the pattern (null not permitted)
      Seit:
      8.0
      Siehe auch:
    • 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.
      Angegeben von:
      setFormatingProperties in Schnittstelle ChartFormat
      Parameter:
      properties - the properties object (null not permitted)
    • format

      public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
      Angegeben von:
      format in Klasse DateFormat
    • parse

      public Date parse(String source, ParsePosition pos)
      Angegeben von:
      parse in Klasse DateFormat
    • saveProperties

      public void saveProperties(StringBuilder buffer, int depth)
      Writes the format properties to output.
      Angegeben von:
      saveProperties in Schnittstelle ChartFormat
      Parameter:
      buffer - the output
      depth - the depth of XML indent
    • readProperties

      public void readProperties(Element element)
      Reads the XML properties of a chart format.
      Angegeben von:
      readProperties in Schnittstelle ChartFormat
      Parameter:
      element - DOM element
      Siehe auch:
    • clone

      public PatternDateTimeFormat clone()
      Overrides Cloneable
      Angegeben von:
      clone in Schnittstelle ChartFormat
      Setzt außer Kraft:
      clone in Klasse DateFormat
      Gibt zurück:
      the chart format
    • getName

      protected String getName()
      FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
      Gibt zurück:
      the name.