Class Formatter_Number
java.lang.Object
java.text.Format
org.knowm.xchart.internal.chartpart.Formatter_Number
- All Implemented Interfaces:
Serializable, Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class Format
Format.Field -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Axis.Directionprivate final doubleprivate final doubleprivate final NumberFormatprivate final AxesChartStylerprivate int -
Constructor Summary
ConstructorsConstructorDescriptionFormatter_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
Modifier and TypeMethodDescriptionformat(Object obj, StringBuffer toAppendTo, FieldPosition pos) private StringgetFormatPattern(double value) private StringgetNormalDecimalPatternPositive(int placeOfValue, int placeOfDifference) parseObject(String source, ParsePosition pos) Methods inherited from class Format
clone, format, formatToCharacterIterator, parseObject
-
Field Details
-
styler
-
axisDirection
-
min
private final double min -
max
private final double max -
numberFormat
-
yIndex
private int yIndex
-
-
Constructor Details
-
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 Details
-
getFormatPattern
-
getNormalDecimalPatternPositive
-
format
-
parseObject
- Specified by:
parseObjectin classFormat
-