Package org.jCharts.properties
Class DataAxisProperties
java.lang.Object
org.jCharts.properties.Properties
org.jCharts.properties.AxisTypeProperties
org.jCharts.properties.LabelAxisProperties
org.jCharts.properties.DataAxisProperties
- All Implemented Interfaces:
Serializable,HTMLTestable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate ScaleCalculatorprivate booleanprivate booleanprivate booleanprivate booleanprivate doubleprivate doubleprivate booleanprivate ChartStrokeFields inherited from class org.jCharts.properties.AxisTypeProperties
GRID_LINES_ALL, GRID_LINES_NONE, GRID_LINES_ONLY_WITH_LABELS, TICKS_ALL, TICKS_NONE, TICKS_ONLY_WITH_LABELSFields inherited from class org.jCharts.properties.Properties
DEFAULT_BACKGROUND_PAINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoubledoublebooleanvoidsetNumItems(int numItems) voidsetRoundToNearest(int roundToNearest) voidsetScaleCalculator(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!voidsetShowZeroLine(boolean showZeroLine) voidsetUseCommas(boolean useCommas) voidsetUseDollarSigns(boolean useDollarSigns) voidsetUsePercentSigns(boolean usePercentSigns) voidsetUserDefinedScale(double axisMinimum, double axisIncrement) voidsetZeroLineChartStroke(ChartStroke zeroLine) booleanvoidtoHTML(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.booleanbooleanbooleanMethods inherited from class org.jCharts.properties.AxisTypeProperties
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, showAxisLabelsMethods inherited from class org.jCharts.properties.Properties
getBackgroundPaint, setBackgroundPaint
-
Field Details
-
roundToNearest
private int roundToNearest -
showZeroLine
private boolean showZeroLine -
zeroLineChartStroke
-
userDefinedScale
private boolean userDefinedScale -
userDefinedMinimumValue
private double userDefinedMinimumValue -
userDefinedIncrement
private double userDefinedIncrement -
numItems
private int numItems -
useDollarSigns
private boolean useDollarSigns -
useCommas
private boolean useCommas -
usePercentSigns
private boolean usePercentSigns -
scaleCalculator
-
-
Constructor Details
-
DataAxisProperties
public DataAxisProperties()
-
-
Method Details
-
setUserDefinedScale
- Parameters:
axisMinimum-axisIncrement-- Throws:
PropertyException
-
getRoundToNearest
public int getRoundToNearest() -
setRoundToNearest
public void setRoundToNearest(int roundToNearest) -
showZeroLine
public boolean showZeroLine() -
setShowZeroLine
public void setShowZeroLine(boolean showZeroLine) -
getZeroLineChartStroke
-
setZeroLineChartStroke
-
hasUserDefinedScale
public boolean hasUserDefinedScale() -
getUserDefinedMinimumValue
public double getUserDefinedMinimumValue() -
getUserDefinedIncrement
public double getUserDefinedIncrement() -
getNumItems
public int getNumItems() -
setNumItems
public void setNumItems(int numItems) -
useDollarSigns
public boolean useDollarSigns() -
setUseDollarSigns
public void setUseDollarSigns(boolean useDollarSigns) -
useCommas
public boolean useCommas() -
setUseCommas
public void setUseCommas(boolean useCommas) -
usePercentSigns
public boolean usePercentSigns() -
setUsePercentSigns
public void setUsePercentSigns(boolean usePercentSigns) -
getScaleCalculator
-
setScaleCalculator
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!- Parameters:
scaleCalculator-
-
toHTML
Enables the testing routines to display the contents of this Object.- Specified by:
toHTMLin interfaceHTMLTestable- Overrides:
toHTMLin classAxisTypeProperties- Parameters:
htmlGenerator-
-