public class ContinuousNumberAxis extends DiscreteNumberAxis implements com.inet.report.chart.axis.ContinuousAxis, com.inet.report.chart.axis.MarkerAxis
BaseAxis
,
ContinuousAxis
,
Serialized FormDEFAULT_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 |
---|
ContinuousNumberAxis()
Creates a continuous number axis.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarker(AbstractMarker marker)
Adds a new marker to the marker list of this axis.
|
AbstractMarker |
getMarker(int index)
Returns the marker from position.
|
int |
getMarkersCount()
Returns the total amount of markers on this axis.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
boolean |
isAutomaticScale()
Returns whether or not the axis range is
automatically adjusted to fit the data values.
|
boolean |
isLogarithmicScale()
Returns whether or not this axis is to use a logarithmic scale.
|
boolean |
isRotateLabels()
Returns whether the axis labels are to be rotated 90 degrees.
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Loads the XML properties of a chart axis.
|
void |
removeMarker(int index)
Removes the marker at the position given.
|
protected void |
saveSubProperties(java.io.PrintWriter out,
int depth)
Writes the intern axis properties to output.
|
void |
setAutomaticScale(boolean isAutomaticScale)
Sets whether or not the axis range is
automatically adjusted to fit the data, and notifies registered
listeners that the axis has been modified.
|
void |
setLogarithmicScale(boolean isLogarithmicScale)
Sets whether or not this axis is to use a logarithmic scale.
|
void |
setRotateLabels(boolean rotate)
Sets whether the axis labels are to be rotated 90 degrees.
|
getNumberOfDivisions, getNumberOfDivisionsFormula, getRange, getReferencedObjects, getStepWidth, getStepWidthFormula, setNumberOfDivisions, setNumberOfDivisionsFormula, setRange, setStepWidth, setStepWidthFormula
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle
public ContinuousNumberAxis()
public boolean isLogarithmicScale()
setLogarithmicScale(boolean)
public void setLogarithmicScale(boolean isLogarithmicScale)
isLogarithmicScale
- whether or not this axis is to use a logarithmic scaleisLogarithmicScale()
public boolean isAutomaticScale()
setAutomaticScale(boolean)
public void setAutomaticScale(boolean isAutomaticScale)
isAutomaticScale
- whether or not the axis range is
automatically adjusted to fit the dataisAutomaticScale()
public boolean isRotateLabels()
setRotateLabels(boolean)
public void setRotateLabels(boolean rotate)
rotate
- whether the axis labels are to be rotated 90 degreesisRotateLabels()
public void addMarker(AbstractMarker marker)
marker
- (null
not permitted)java.lang.IllegalArgumentException
- if marker is null
.getMarker(int)
,
removeMarker(int)
,
getMarkersCount()
public AbstractMarker getMarker(int index)
index
- the position of marker in the marker listjava.lang.IndexOutOfBoundsException
- if the index out of bounds.addMarker(AbstractMarker)
,
removeMarker(int)
,
getMarkersCount()
public void removeMarker(int index)
index
- the position at which to remove a marker from the list of markersjava.lang.IndexOutOfBoundsException
- if the index out of bounds.addMarker(AbstractMarker)
,
getMarker(int)
,
getMarkersCount()
public int getMarkersCount()
addMarker(AbstractMarker)
,
getMarker(int)
,
removeMarker(int)
protected java.lang.StringBuilder getSubProperties(int depth)
getSubProperties
in class DiscreteNumberAxis
depth
- the depth of XML indentprotected void saveSubProperties(java.io.PrintWriter out, int depth)
PrintWriter
without building a StringBuilder
.saveSubProperties
in class BaseAxis
out
- the outputdepth
- the depth of XML indentpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
readProperties
in class DiscreteNumberAxis
element
- DOM element to read the properties fromchart
- the chart this axis belongs toBaseAxis.saveProperties(PrintWriter, int, String)
Copyright © 1999-2020 by i-net software GmbH