|
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.ContinuousDateAxis
public class ContinuousDateAxis
This axis displays a continuous time line with values. Used as data axis by gantt or as continuous category axis.
BaseAxis,
ContinuousAxis,
Serialized Form| Field Summary | |
|---|---|
static int |
STEP_AUTO
The step width of the axis labels is defined automatically. |
static int |
STEP_DAY
Constant defining the step width of the axis labels as one day. |
static int |
STEP_HOUR
Constant defining the step width of the axis labels as one hour. |
static int |
STEP_MILLISECOND
Constant defining the step width of the axis labels as one millisecond. |
static int |
STEP_MINUTE
Constant defining the step width of the axis labels as one minute. |
static int |
STEP_MONTH
Constant defining the step width of the axis labels as one month. |
static int |
STEP_SECOND
Constant defining the step width of the axis labels as one second. |
static int |
STEP_YEAR
Constant defining the step width of the axis labels as one year. |
| 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 | |
|---|---|
ContinuousDateAxis()
Creates a continuous date axis. |
|
| Method Summary | |
|---|---|
void |
addMarker(AbstractMarker marker)
Adds a new marker to the marker list of this axis. |
DateRange |
getDateRange()
Returns the range controller object which is responsible for determining the range to be shown on the axis |
java.lang.Integer |
getDateStepWidthType()
Returns the date step width of axis units - a step will be 1 of the unit returned. |
AbstractMarker |
getMarker(int index)
Returns the marker from position. |
int |
getMarkersCount()
Returns the total amount of markers on this axis. |
java.lang.Integer |
getNumberOfDateSteps()
Returns the number of steps or null if the number of steps should be defined automatically. |
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 |
isRotateLabels()
Returns whether the axis labels are to be rotated by 90 degrees from the axis direction. |
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 a flag that determines whether or not the axis range is automatically adjusted to fit the data, and notifies registered listeners that the axis has been modified. |
void |
setDateRange(DateRange range)
Sets the range controller object. |
void |
setDateStepWidthType(java.lang.Integer dateStep)
Sets date step width of axis units: a step will be 1 of whichever unit is provided. |
void |
setNumberOfDateSteps(java.lang.Integer numberOfDateSteps)
Sets the number of date steps. |
void |
setRotateLabels(boolean rotate)
Sets whether the axis labels are to be rotated 90 degrees from the axis direction. |
| 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 |
| Field Detail |
|---|
public static final int STEP_AUTO
public static final int STEP_MILLISECOND
public static final int STEP_SECOND
public static final int STEP_MINUTE
public static final int STEP_HOUR
public static final int STEP_DAY
public static final int STEP_MONTH
public static final int STEP_YEAR
| Constructor Detail |
|---|
public ContinuousDateAxis()
| Method Detail |
|---|
public boolean isAutomaticScale()
setAutomaticScale(boolean)public void setAutomaticScale(boolean isAutomaticScale)
isAutomaticScale - the flagisAutomaticScale()public boolean isRotateLabels()
setRotateLabels(boolean)public void setRotateLabels(boolean rotate)
rotate - whether the labels are to be rotatedisRotateLabels()public DateRange getDateRange()
setDateRange(DateRange)public void setDateRange(DateRange range)
range - the rage (null not permitted)
java.lang.IllegalArgumentException - if range is null.getDateRange()public java.lang.Integer getDateStepWidthType()
null if the step width should be defined automatically. Will be
one of the STEP_xxx constants.setDateStepWidthType(Integer),
STEP_MILLISECOND,
STEP_SECOND,
STEP_MINUTE,
STEP_HOUR,
STEP_DAY,
STEP_MONTH,
STEP_YEARpublic void setDateStepWidthType(java.lang.Integer dateStep)
null to define the step width automatically.
dateStep - the date step width (null permitted). See the STEP_xxx constants
java.lang.IllegalArgumentException - when an unsupported type is given.getDateStepWidthType(),
STEP_MILLISECOND,
STEP_SECOND,
STEP_MINUTE,
STEP_HOUR,
STEP_DAY,
STEP_MONTH,
STEP_YEARpublic java.lang.Integer getNumberOfDateSteps()
null if the number of steps should be defined automatically.
setNumberOfDateSteps(Integer)public void setNumberOfDateSteps(java.lang.Integer numberOfDateSteps)
numberOfDateSteps - the number of date steps or null to define the number of steps automatically
java.lang.IllegalArgumentException - if numberOfDateSteps less or equal 0.getNumberOfDateSteps(),
setDateStepWidthType(Integer)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 list
java.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 markers
java.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.StringBuffer getSubProperties(int depth)
getSubProperties in class BaseAxisdepth - the depth of XML indent
protected void saveSubProperties(java.io.PrintWriter out,
int depth)
PrintWriter without building a StringBuffer.
saveSubProperties in class BaseAxisout - the outputdepth - the depth of XML indentpublic 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 | |||||||