|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.axis.BaseAxis
com.inet.report.chart.axis.DiscreteNumberAxis
public class DiscreteNumberAxis
The axis which displays discrete number values.
| Field Summary |
|---|
| Fields inherited from class com.inet.report.chart.axis.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 Summary | |
|---|---|
DiscreteNumberAxis()
Creates a discrete number axis. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getNumberOfDivisions()
Returns the number of divisions on the axis. |
NumberRange |
getRange()
Returns the range controller object. |
java.lang.Double |
getStepWidth()
Returns the step width of axis units. |
protected java.lang.StringBuffer |
getSubProperties(int depth)
Returns the serialized properties of subclasses. |
void |
readProperties(org.w3c.dom.Element element)
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 |
setRange(NumberRange range)
Sets the range controller object. |
void |
setStepWidth(java.lang.Double stepWidth)
Sets the step width of axis units. |
| Methods inherited from class com.inet.report.chart.axis.BaseAxis |
|---|
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, saveSubProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle |
| Constructor Detail |
|---|
public DiscreteNumberAxis()
| Method Detail |
|---|
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.
nullsetNumberOfDivisions(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.StringBuffer getSubProperties(int depth)
getSubProperties in class BaseAxisdepth - the depth of XML indent
public void readProperties(org.w3c.dom.Element element)
readProperties in class BaseAxiselement - DOM element to read the properties fromBaseAxis.saveProperties(PrintWriter, int, String)
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||