Class Formatter_Number

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    class Formatter_Number
    extends java.text.Format
    • Nested Class Summary

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

        java.text.Format.Field
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer format​(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)  
      private java.lang.String getFormatPattern​(double value)  
      private java.lang.String getNormalDecimalPatternPositive​(int placeOfValue, int placeOfDifference)  
      java.lang.Object parseObject​(java.lang.String source, java.text.ParsePosition pos)  
      • Methods inherited from class java.text.Format

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

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

      • min

        private final double min
      • max

        private final double max
      • numberFormat

        private final java.text.NumberFormat numberFormat
      • yIndex

        private int yIndex
    • Constructor Detail

      • Formatter_Number

        public Formatter_Number​(AxesChartStyler styler,
                                Axis.Direction axisDirection,
                                double min,
                                double max,
                                int yIndex)
        Constructor
        Parameters:
        styler -
        axisDirection -
        min -
        max -
        yIndex -
    • Method Detail

      • getFormatPattern

        private java.lang.String getFormatPattern​(double value)
      • getNormalDecimalPatternPositive

        private java.lang.String getNormalDecimalPatternPositive​(int placeOfValue,
                                                                 int placeOfDifference)
      • format

        public java.lang.StringBuffer format​(java.lang.Object obj,
                                             java.lang.StringBuffer toAppendTo,
                                             java.text.FieldPosition pos)
        Specified by:
        format in class java.text.Format
      • parseObject

        public java.lang.Object parseObject​(java.lang.String source,
                                            java.text.ParsePosition pos)
        Specified by:
        parseObject in class java.text.Format