Class Formatter_Number
- java.lang.Object
-
- java.text.Format
-
- org.knowm.xchart.internal.chartpart.Formatter_Number
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
class Formatter_Number extends java.text.Format
-
-
Field Summary
Fields Modifier and Type Field Description private Axis.DirectionaxisDirectionprivate doublemaxprivate doubleminprivate java.text.NumberFormatnumberFormatprivate AxesChartStylerstylerprivate intyIndex
-
Constructor Summary
Constructors Constructor Description Formatter_Number(AxesChartStyler styler, Axis.Direction axisDirection, double min, double max)ConstructorFormatter_Number(AxesChartStyler styler, Axis.Direction axisDirection, double min, double max, int yIndex)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBufferformat(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)private java.lang.StringgetFormatPattern(double value)private java.lang.StringgetNormalDecimalPatternPositive(int placeOfValue, int placeOfDifference)java.lang.ObjectparseObject(java.lang.String source, java.text.ParsePosition pos)
-
-
-
Field Detail
-
styler
private final AxesChartStyler styler
-
axisDirection
private final Axis.Direction axisDirection
-
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)
Constructor
-
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:
formatin classjava.text.Format
-
parseObject
public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)- Specified by:
parseObjectin classjava.text.Format
-
-