public class DiscreteNumberAxis extends BaseAxis
DEFAULT_AXIS_LINE_COLOR, DEFAULT_GRIDLINE_COLOR, DEFAULT_TICK_LABEL_COLOR, DEFAULT_TICK_LABEL_FONT, DEFAULT_TITLE, TOKEN_CATEGORY_AXIS, TOKEN_DATA_AXIS, TOKEN_SERIES_AXIS
Constructor and Description |
---|
DiscreteNumberAxis()
Creates a discrete number axis.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getNumberOfDivisions()
Returns the number of divisions on the axis.
|
FormulaField |
getNumberOfDivisionsFormula()
Get the numberOfDivisionsFormula of the DiscreteNumberAxis.
|
NumberRange |
getRange()
Returns the range controller object.
|
java.util.List<java.lang.Object> |
getReferencedObjects()
Get FormulaFields referenced by this Axis.
|
java.lang.Double |
getStepWidth()
Returns the step width of axis units.
|
FormulaField |
getStepWidthFormula()
Get the stepWidthFormula of the DiscreteNumberAxis.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Loads the XML properties of a chart axis.
|
void |
setNumberOfDivisions(java.lang.Integer numberOfDivisions)
Sets the number of divisions, allows only positive values or
null to define the number of divisions automatically. |
void |
setNumberOfDivisionsFormula(FormulaField numberOfDivisionsFormula)
Set the numberOfDivisionsFormula of the DiscreteNumberAxis.
|
void |
setRange(NumberRange range)
Sets the range controller object.
|
void |
setStepWidth(java.lang.Double stepWidth)
Sets the step width of axis units.
|
void |
setStepWidthFormula(FormulaField stepWidthFormula)
Set the stepWidthFormula of the DiscreteNumberAxis.
|
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, saveSubProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle
public DiscreteNumberAxis()
public NumberRange getRange()
setRange(NumberRange)
public void setRange(NumberRange range)
range
- the rage (null
not permitted)java.lang.IllegalArgumentException
- if range is null
.getRange()
public java.lang.Double getStepWidth()
null
if this property was not set.setStepWidth(Double)
public void setStepWidth(java.lang.Double stepWidth)
null
to define the step width automatically.
This property is only for the number axis, for a date axis please use ContinuousDateAxis.setDateStepWidthType(Integer)
.stepWidth
- the step width (null
permitted)java.lang.IllegalArgumentException
- if stepWidth less than 0.getStepWidth()
public java.lang.Integer getNumberOfDivisions()
null
by automatically partitioning.null
setNumberOfDivisions(Integer)
public void setNumberOfDivisions(java.lang.Integer numberOfDivisions)
null
to define the number of divisions automatically.
This property is only for the number axis, for a date axis please use ContinuousDateAxis.setNumberOfDateSteps(Integer)
.numberOfDivisions
- the number of divisions (null
permitted)java.lang.IllegalArgumentException
- if numberOfDivisions less or equal 0.getNumberOfDivisions()
protected java.lang.StringBuilder getSubProperties(int depth)
getSubProperties
in class BaseAxis
depth
- the depth of XML indentpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
readProperties
in class BaseAxis
element
- DOM element to read the properties fromchart
- the chart this axis belongs toBaseAxis.saveProperties(PrintWriter, int, String)
public FormulaField getNumberOfDivisionsFormula()
getNumberOfDivisions()
is used.setNumberOfDivisionsFormula(FormulaField)
public void setNumberOfDivisionsFormula(FormulaField numberOfDivisionsFormula)
setNumberOfDivisions(Integer)
is used.numberOfDivisionsFormula
- the numberOfDivisionsFormula of the DiscreteNumberAxis, null when no formula is
used.getNumberOfDivisionsFormula()
public FormulaField getStepWidthFormula()
getStepWidth()
is used.setStepWidthFormula(FormulaField)
,
getStepWidth()
public void setStepWidthFormula(FormulaField stepWidthFormula)
setStepWidth(Double)
is used.stepWidthFormula
- the stepWidthFormula of the DiscreteNumberAxis, null when no formula is to be usd.getStepWidthFormula()
,
setStepWidth(Double)
public java.util.List<java.lang.Object> getReferencedObjects()
getReferencedObjects
in class BaseAxis
Copyright © 1999-2020 by i-net software GmbH