public final class DataAxisProperties extends LabelAxisProperties implements HTMLTestable
Modifier and Type | Field and Description |
---|---|
private int |
numItems |
private int |
roundToNearest |
private ScaleCalculator |
scaleCalculator |
private boolean |
showZeroLine |
private boolean |
useCommas |
private boolean |
useDollarSigns |
private boolean |
usePercentSigns |
private double |
userDefinedIncrement |
private double |
userDefinedMinimumValue |
private boolean |
userDefinedScale |
private ChartStroke |
zeroLineChartStroke |
GRID_LINES_ALL, GRID_LINES_NONE, GRID_LINES_ONLY_WITH_LABELS, TICKS_ALL, TICKS_NONE, TICKS_ONLY_WITH_LABELS
DEFAULT_BACKGROUND_PAINT
Constructor and Description |
---|
DataAxisProperties() |
Modifier and Type | Method and Description |
---|---|
int |
getNumItems() |
int |
getRoundToNearest() |
ScaleCalculator |
getScaleCalculator() |
double |
getUserDefinedIncrement() |
double |
getUserDefinedMinimumValue() |
ChartStroke |
getZeroLineChartStroke() |
boolean |
hasUserDefinedScale() |
void |
setNumItems(int numItems) |
void |
setRoundToNearest(int roundToNearest) |
void |
setScaleCalculator(ScaleCalculator scaleCalculator)
You do not have to explicitly set a ScaleCalculator implementation as jCharts will
create one, but if you do not like the way Scale ranges are created, you could
create your own implementation of ScaleCalculator and jCharts will use it!
|
void |
setShowZeroLine(boolean showZeroLine) |
void |
setUseCommas(boolean useCommas) |
void |
setUseDollarSigns(boolean useDollarSigns) |
void |
setUsePercentSigns(boolean usePercentSigns) |
void |
setUserDefinedScale(double axisMinimum,
double axisIncrement) |
void |
setZeroLineChartStroke(ChartStroke zeroLine) |
boolean |
showZeroLine() |
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
boolean |
useCommas() |
boolean |
useDollarSigns() |
boolean |
usePercentSigns() |
getAxisStroke, getAxisTickMarkPixelLength, getAxisTitleChartFont, getGridLineChartStroke, getPaddingBetweenAxisAndLabels, getPaddingBetweenAxisLabels, getPaddingBetweenAxisTitleAndLabels, getPaddingBetweenLabelsAndTicks, getScaleChartFont, getShowEndBorder, getShowGridLines, getShowTicks, getTickChartStroke, getTitleChartFont, setAxisStroke, setAxisTickMarkPixelLength, setAxisTitleChartFont, setGridLineChartStroke, setPaddingBetweenAxisAndLabels, setPaddingBetweenAxisTitleAndLabels, setPaddingBetweenLabelsAndTicks, setPaddingBetweenXAxisLabels, setScaleChartFont, setShowAxisLabels, setShowEndBorder, setShowGridLines, setShowTicks, setTickChartStroke, setTitleChartFont, showAxisLabels
getBackgroundPaint, setBackgroundPaint
private int roundToNearest
private boolean showZeroLine
private ChartStroke zeroLineChartStroke
private boolean userDefinedScale
private double userDefinedMinimumValue
private double userDefinedIncrement
private int numItems
private boolean useDollarSigns
private boolean useCommas
private boolean usePercentSigns
private ScaleCalculator scaleCalculator
public void setUserDefinedScale(double axisMinimum, double axisIncrement) throws PropertyException
axisMinimum
- axisIncrement
- PropertyException
public int getRoundToNearest()
public void setRoundToNearest(int roundToNearest)
public boolean showZeroLine()
public void setShowZeroLine(boolean showZeroLine)
public ChartStroke getZeroLineChartStroke()
public void setZeroLineChartStroke(ChartStroke zeroLine)
public boolean hasUserDefinedScale()
public double getUserDefinedMinimumValue()
public double getUserDefinedIncrement()
public int getNumItems()
public void setNumItems(int numItems)
public boolean useDollarSigns()
public void setUseDollarSigns(boolean useDollarSigns)
public boolean useCommas()
public void setUseCommas(boolean useCommas)
public boolean usePercentSigns()
public void setUsePercentSigns(boolean usePercentSigns)
public ScaleCalculator getScaleCalculator()
public void setScaleCalculator(ScaleCalculator scaleCalculator)
scaleCalculator
- public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
toHTML
in class AxisTypeProperties
htmlGenerator
-