public class NumericTagGroup extends TextTagGroup
| Modifier and Type | Field and Description |
|---|---|
private NumberFormat |
numberFormat |
| Constructor and Description |
|---|
NumericTagGroup(ChartFont chartFont,
FontRenderContext fontRenderContext,
boolean isCurrency,
boolean isPercent,
boolean showCommas,
int roundingPowerOfTen) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(double value) |
void |
createAxisScaleLabels(ScaleCalculator scaleCalculator)
Creates the axis labels for the passed ScaleCalculator instance.
|
static NumberFormat |
getNumberFormatInstance(boolean isCurrency,
boolean isPercent,
boolean showCommas,
int roundingPowerOfTen)
Allow use of this logic to not only this class but to the chart label values.
|
addLabel, getTallestLabel, getTextTag, getTotalLabelWidths, getWidestLabel, render, reverse, size, toHTMLprivate NumberFormat numberFormat
public NumericTagGroup(ChartFont chartFont, FontRenderContext fontRenderContext, boolean isCurrency, boolean isPercent, boolean showCommas, int roundingPowerOfTen)
chartFont - fontRenderContext - isCurrency - isPercent - showCommas - roundingPowerOfTen - the exponent of ten to round to: 1=10, -1=.1, 3=1000, etc...public static final NumberFormat getNumberFormatInstance(boolean isCurrency, boolean isPercent, boolean showCommas, int roundingPowerOfTen)
isCurrency - isPercent - showCommas - roundingPowerOfTen - public void addLabel(double value)
value - public void createAxisScaleLabels(ScaleCalculator scaleCalculator)
scaleCalculator -