Klasse PatternNumberFormat

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

public class PatternNumberFormat extends NumberFormat implements ChartFormat
This is a number format defined by a pattern.
For more information to the pattern see http://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html
Seit:
8.0
Siehe auch:
  • Felddetails

    • DEFAULT_PATTERN

      public static final String DEFAULT_PATTERN
      The default pattern with thousands separator and two decimals.
      Siehe auch:
  • Konstruktordetails

    • PatternNumberFormat

      public PatternNumberFormat()
      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(double number, StringBuffer toAppendTo, FieldPosition pos)
      Angegeben von:
      format in Klasse NumberFormat
    • format

      public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos)
      Angegeben von:
      format in Klasse NumberFormat
    • parse

      public Number parse(String source, ParsePosition parsePosition)
      Angegeben von:
      parse in Klasse NumberFormat
    • 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 PatternNumberFormat clone()
      Overrides Cloneable
      Angegeben von:
      clone in Schnittstelle ChartFormat
      Setzt außer Kraft:
      clone in Klasse NumberFormat
      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.