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 int
private int
private ScaleCalculator
private boolean
private boolean
private boolean
private boolean
private double
private double
private boolean
private ChartStroke
Fields 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_LABELS
Fields inherited from class org.jCharts.properties.Properties
DEFAULT_BACKGROUND_PAINT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
double
double
boolean
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
void
toHTML
(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.boolean
boolean
boolean
Methods 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, showAxisLabels
Methods 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:
toHTML
in interfaceHTMLTestable
- Overrides:
toHTML
in classAxisTypeProperties
- Parameters:
htmlGenerator
-
-