Klasse ContinuousDateAxis
java.lang.Object
com.inet.report.chart.axis.BaseAxis
com.inet.report.chart.axis.ContinuousDateAxis
- Alle implementierten Schnittstellen:
com.inet.report.chart.axis.ContinuousAxis, com.inet.report.chart.axis.MarkerAxis, Serializable
public class ContinuousDateAxis
extends BaseAxis
implements com.inet.report.chart.axis.ContinuousAxis, com.inet.report.chart.axis.MarkerAxis
This axis displays a continuous time line with values.
Used as data axis by gantt or as continuous category axis.
- Seit:
- 8.0
- Siehe auch:
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intThe step width of the axis labels is defined automatically.static final intConstant defining the step width of the axis labels as one day.static final intConstant defining the step width of the axis labels as one hour.static final intConstant defining the step width of the axis labels as one millisecond.static final intConstant defining the step width of the axis labels as one minute.static final intConstant defining the step width of the axis labels as one month.static final intConstant defining the step width of the axis labels as one second.static final intConstant defining the step width of the axis labels as one week.static final intConstant defining the step width of the axis labels as one year.Von Klasse geerbte Felder 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 -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidaddMarker(AbstractMarker marker) Adds a new marker to the marker list of this axis.Returns the range controller object which is responsible for determining the range to be shown on the axisReturns the date step width of axis units - a step will be 1 of the unit returned.intGets the label angle in degree with a range from 0 to 359.getMarker(int index) Returns the marker from position.intReturns the total amount of markers on this axis.Returns the number of steps ornullif the number of steps should be defined automatically.Get FormulaFields referenced by this Axis.
Can be from marker (if this is MarkerAxis) or from title.protected StringBuildergetSubProperties(int depth) Returns the serialized properties of subclasses.booleanReturns whether or not the axis range is automatically adjusted to fit the data values.booleanReturns whether the axis labels are to be rotated by 90 degrees from the axis direction.voidreadProperties(Element element, Chart2 chart) Loads the XML properties of a chart axis.voidremoveMarker(int index) Removes the marker at the position given.protected voidsaveSubProperties(PrintWriter out, int depth) Writes the intern axis properties to output.voidsetAutomaticScale(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.voidsetDateRange(DateRange range) Sets the range controller object.voidsetDateStepWidthType(Integer dateStep) Sets date step width of axis units: a step will be 1 of whichever unit is provided.voidsetLabelAngle(int labelAngle) Sets the label angle for rotating the axis labels in degrees.voidsetNumberOfDateSteps(Integer numberOfDateSteps) Sets the number of date steps.voidsetRotateLabels(boolean rotate) Sets whether the axis labels are to be rotated 90 degrees from the axis direction.Von Klasse geerbte Methoden BaseAxis
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle
-
Felddetails
-
STEP_AUTO
public static final int STEP_AUTOThe step width of the axis labels is defined automatically.- Siehe auch:
-
STEP_MILLISECOND
public static final int STEP_MILLISECONDConstant defining the step width of the axis labels as one millisecond.- Siehe auch:
-
STEP_SECOND
public static final int STEP_SECONDConstant defining the step width of the axis labels as one second.- Siehe auch:
-
STEP_MINUTE
public static final int STEP_MINUTEConstant defining the step width of the axis labels as one minute.- Siehe auch:
-
STEP_HOUR
public static final int STEP_HOURConstant defining the step width of the axis labels as one hour.- Siehe auch:
-
STEP_DAY
public static final int STEP_DAYConstant defining the step width of the axis labels as one day.- Siehe auch:
-
STEP_WEEK
public static final int STEP_WEEKConstant defining the step width of the axis labels as one week.- Siehe auch:
-
STEP_MONTH
public static final int STEP_MONTHConstant defining the step width of the axis labels as one month.- Siehe auch:
-
STEP_YEAR
public static final int STEP_YEARConstant defining the step width of the axis labels as one year.- Siehe auch:
-
-
Konstruktordetails
-
ContinuousDateAxis
public ContinuousDateAxis()Creates a continuous date axis. Initializes the parameters with default.- Seit:
- 8.0
-
-
Methodendetails
-
isAutomaticScale
public boolean isAutomaticScale()Returns whether or not the axis range is automatically adjusted to fit the data values.- Gibt zurück:
- whether or not the axis range is automatically adjusted to fit the data values.
- Seit:
- 8.0
- Siehe auch:
-
setAutomaticScale
public 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.- Parameter:
isAutomaticScale- the flag- Seit:
- 8.0
- Siehe auch:
-
isRotateLabels
public boolean isRotateLabels()Returns whether the axis labels are to be rotated by 90 degrees from the axis direction.- Gibt zurück:
- whether the labels are to be rotated.
- Seit:
- 8.0
- Siehe auch:
-
setRotateLabels
public void setRotateLabels(boolean rotate) Sets whether the axis labels are to be rotated 90 degrees from the axis direction.- Parameter:
rotate- whether the labels are to be rotated- Seit:
- 8.0
- Siehe auch:
-
getLabelAngle
public int getLabelAngle()Gets the label angle in degree with a range from 0 to 359.- Gibt zurück:
- the label angle
- Seit:
- 23.4
-
setLabelAngle
public void setLabelAngle(int labelAngle) Sets the label angle for rotating the axis labels in degrees. It should be between 0 and 359.- Parameter:
labelAngle- the new label angle- Seit:
- 23.4
-
getDateRange
Returns the range controller object which is responsible for determining the range to be shown on the axis- Gibt zurück:
- the range
- Seit:
- 8.0
- Siehe auch:
-
setDateRange
Sets the range controller object.- Parameter:
range- the rage (nullnot permitted)- Löst aus:
IllegalArgumentException- if range isnull.- Seit:
- 8.0
- Siehe auch:
-
getDateStepWidthType
Returns the date step width of axis units - a step will be 1 of the unit returned.- Gibt zurück:
- the step width or
nullif the step width should be defined automatically. Will be one of the STEP_xxx constants. - Seit:
- 8.0
- Siehe auch:
-
setDateStepWidthType
Sets date step width of axis units: a step will be 1 of whichever unit is provided. This function supports the listed constants ornullto define the step width automatically.- Parameter:
dateStep- the date step width (nullpermitted). See the STEP_xxx constants- Löst aus:
IllegalArgumentException- when an unsupported type is given.- Seit:
- 8.0
- Siehe auch:
-
getNumberOfDateSteps
Returns the number of steps ornullif the number of steps should be defined automatically.- Gibt zurück:
- the numberOfDateSteps.
- Seit:
- 8.0
- Siehe auch:
-
setNumberOfDateSteps
Sets the number of date steps. This property works only if a date step width type was defined.- Parameter:
numberOfDateSteps- the number of date steps ornullto define the number of steps automatically- Löst aus:
IllegalArgumentException- if numberOfDateSteps less or equal 0.- Seit:
- 8.0
- Siehe auch:
-
addMarker
Adds a new marker to the marker list of this axis.- Angegeben von:
addMarkerin Schnittstellecom.inet.report.chart.axis.MarkerAxis- Parameter:
marker- (nullnot permitted)- Löst aus:
IllegalArgumentException- if marker isnull.- Seit:
- 8.0
- Siehe auch:
-
getMarker
Returns the marker from position.- Angegeben von:
getMarkerin Schnittstellecom.inet.report.chart.axis.MarkerAxis- Parameter:
index- the position of marker in the marker list- Gibt zurück:
- the marker.
- Löst aus:
IndexOutOfBoundsException- if the index out of bounds.- Seit:
- 8.0
- Siehe auch:
-
removeMarker
public void removeMarker(int index) Removes the marker at the position given.- Angegeben von:
removeMarkerin Schnittstellecom.inet.report.chart.axis.MarkerAxis- Parameter:
index- the position at which to remove a marker from the list of markers- Löst aus:
IndexOutOfBoundsException- if the index out of bounds.- Seit:
- 8.0
- Siehe auch:
-
getMarkersCount
public int getMarkersCount()Returns the total amount of markers on this axis.- Angegeben von:
getMarkersCountin Schnittstellecom.inet.report.chart.axis.MarkerAxis- Gibt zurück:
- the number of markers on this axis.
- Seit:
- 8.0
- Siehe auch:
-
getSubProperties
Returns the serialized properties of subclasses.- Setzt außer Kraft:
getSubPropertiesin KlasseBaseAxis- Parameter:
depth- the depth of XML indent- Gibt zurück:
- the properties.
-
saveSubProperties
Writes the intern axis properties to output. Overwrites this to save intern properties direct toPrintWriterwithout building aStringBuilder.- Setzt außer Kraft:
saveSubPropertiesin KlasseBaseAxis- Parameter:
out- the outputdepth- the depth of XML indent
-
readProperties
Loads the XML properties of a chart axis.- Setzt außer Kraft:
readPropertiesin KlasseBaseAxis- Parameter:
element- DOM element to read the properties fromchart- the current chart. Any formula will be registered at the chart's renderer. Not null.- Seit:
- 8.0
- Siehe auch:
-
getReferencedObjects
Get FormulaFields referenced by this Axis.
Can be from marker (if this is MarkerAxis) or from title. Adds the formulas from the date range.- Setzt außer Kraft:
getReferencedObjectsin KlasseBaseAxis- Gibt zurück:
- a list with referenced fields, can be empty.
-