i-net Clear Reports

com.inet.report.chart.axis
Class ContinuousNumberAxis

java.lang.Object
  extended by com.inet.report.chart.axis.BaseAxis
      extended by com.inet.report.chart.axis.DiscreteNumberAxis
          extended by com.inet.report.chart.axis.ContinuousNumberAxis
All Implemented Interfaces:
com.inet.report.chart.axis.ContinuousAxis, java.io.Serializable

public class ContinuousNumberAxis
extends DiscreteNumberAxis
implements com.inet.report.chart.axis.ContinuousAxis

The axis which displays the continuous number line with values. Used as data and summary axis or as continuous category axis.

Since:
8.0
See Also:
BaseAxis, ContinuousAxis, Serialized Form

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
ContinuousNumberAxis()
          Creates a continuous number axis.
 
Method Summary
 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.StringBuffer 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)
          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.
 
Methods inherited from class com.inet.report.chart.axis.DiscreteNumberAxis
getNumberOfDivisions, getRange, getStepWidth, setNumberOfDivisions, setRange, setStepWidth
 
Methods inherited from class com.inet.report.chart.axis.BaseAxis
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle
 

Constructor Detail

ContinuousNumberAxis

public ContinuousNumberAxis()
Creates a continuous number axis. Initializes the parameters with default.

Since:
8.0
Method Detail

isLogarithmicScale

public boolean isLogarithmicScale()
Returns whether or not this axis is to use a logarithmic scale.

Returns:
whether or not this axis is to use a logarithmic scale.
Since:
8.0
See Also:
setLogarithmicScale(boolean)

setLogarithmicScale

public void setLogarithmicScale(boolean isLogarithmicScale)
Sets whether or not this axis is to use a logarithmic scale.

Parameters:
isLogarithmicScale - whether or not this axis is to use a logarithmic scale
Since:
8.0
See Also:
isLogarithmicScale()

isAutomaticScale

public boolean isAutomaticScale()
Returns whether or not the axis range is automatically adjusted to fit the data values.

Returns:
whether or not the axis range is automatically adjusted to fit the data values
Since:
8.0
See Also:
setAutomaticScale(boolean)

setAutomaticScale

public 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.

Parameters:
isAutomaticScale - whether or not the axis range is automatically adjusted to fit the data
Since:
8.0
See Also:
isAutomaticScale()

isRotateLabels

public boolean isRotateLabels()
Returns whether the axis labels are to be rotated 90 degrees.

Returns:
whether the axis labels are to be rotated 90 degrees
Since:
8.0
See Also:
setRotateLabels(boolean)

setRotateLabels

public void setRotateLabels(boolean rotate)
Sets whether the axis labels are to be rotated 90 degrees.

Parameters:
rotate - whether the axis labels are to be rotated 90 degrees
Since:
8.0
See Also:
isRotateLabels()

addMarker

public void addMarker(AbstractMarker marker)
Adds a new marker to the marker list of this axis.

Parameters:
marker - (null not permitted)
Throws:
java.lang.IllegalArgumentException - if marker is null.
Since:
8.0
See Also:
getMarker(int), removeMarker(int), getMarkersCount()

getMarker

public AbstractMarker getMarker(int index)
Returns the marker from position.

Parameters:
index - the position of marker in the marker list
Returns:
the marker.
Throws:
java.lang.IndexOutOfBoundsException - if the index out of bounds.
Since:
8.0
See Also:
addMarker(AbstractMarker), removeMarker(int), getMarkersCount()

removeMarker

public void removeMarker(int index)
Removes the marker at the position given.

Parameters:
index - the position at which to remove a marker from the list of markers
Throws:
java.lang.IndexOutOfBoundsException - if the index out of bounds.
Since:
8.0
See Also:
addMarker(AbstractMarker), getMarker(int), getMarkersCount()

getMarkersCount

public int getMarkersCount()
Returns the total amount of markers on this axis.

Returns:
the number of markers on this axis.
Since:
8.0
See Also:
addMarker(AbstractMarker), getMarker(int), removeMarker(int)

getSubProperties

protected java.lang.StringBuffer getSubProperties(int depth)
Returns the serialized properties of subclasses.

Overrides:
getSubProperties in class DiscreteNumberAxis
Parameters:
depth - the depth of XML indent
Returns:
the properties.

saveSubProperties

protected void saveSubProperties(java.io.PrintWriter out,
                                 int depth)
Writes the intern axis properties to output. Overwrites this to save intern properties direct to PrintWriter without building a StringBuffer.

Overrides:
saveSubProperties in class BaseAxis
Parameters:
out - the output
depth - the depth of XML indent

readProperties

public void readProperties(org.w3c.dom.Element element)
Loads the XML properties of a chart axis.

Overrides:
readProperties in class DiscreteNumberAxis
Parameters:
element - DOM element to read the properties from
See Also:
BaseAxis.saveProperties(PrintWriter, int, String)

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH