Package com.inet.report.chart.axis
Class IntervalMarker
java.lang.Object
com.inet.report.chart.axis.AbstractMarker
com.inet.report.chart.axis.IntervalMarker
- All Implemented Interfaces:
Serializable
Class to create interval markers in a chart plot. An interval marker has two values, a start and an end value.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from class com.inet.report.chart.axis.AbstractMarker
DEFAULT_ALPHA, DEFAULT_COLOR, DEFAULT_LINE_STYLE, DEFAULT_LINE_WIDTH, DEFAULT_VALUE
-
Constructor Summary
ConstructorDescriptionCreates a marker area with two values: the first (start value) and the second (end value). -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the first value (lower bound) of this marker.Get the Formula which returns the first value of the marker.double
Returns the end value (upper bound) of this marker.Get the Formula which returns the second value for the marker.protected StringBuilder
getSubProperties
(int depth) Returns the serialized properties of subclasses.boolean
Get whether the firstValueFormula returns Dateboolean
Get whether the secondValueFormula returns Datevoid
readProperties
(Element element, Chart2 chart) Loads the XML properties of a marker.void
setFirstValue
(double firstValue) Sets the start value (lower bound) of this marker.void
setFirstValueFormula
(FormulaField firstValueFormula, boolean isDate) Set the Formula for the first value of the marker.
Expected type is double or datetime.void
setSecondValue
(double secondValue) Sets the end value (upper bound) of this marker.void
setSecondValueFormula
(FormulaField secondValueFormula, boolean isDate) Set the Formula for the second value of the marker.Methods inherited from class com.inet.report.chart.axis.AbstractMarker
getColor, getLineStyle, getLineWidth, getMarkerReferencesIfExist, setColor, setLineStyle, setLineWidth
-
Constructor Details
-
IntervalMarker
public IntervalMarker()Creates a marker area with two values: the first (start value) and the second (end value). These are initialized as 0.- Since:
- 8.0
-
-
Method Details
-
getFirstValue
public double getFirstValue()Returns the first value (lower bound) of this marker.- Returns:
- the firstValue.
- Since:
- 8.0
-
setFirstValue
public void setFirstValue(double firstValue) Sets the start value (lower bound) of this marker.- Parameters:
firstValue
- the start value- Since:
- 8.0
- See Also:
-
getSecondValue
public double getSecondValue()Returns the end value (upper bound) of this marker.- Returns:
- the end Value.
- Since:
- 8.0
-
setSecondValue
public void setSecondValue(double secondValue) Sets the end value (upper bound) of this marker.- Parameters:
secondValue
- the end value- Since:
- 8.0
- See Also:
-
getSubProperties
Returns the serialized properties of subclasses.- Overrides:
getSubProperties
in classAbstractMarker
- Parameters:
depth
- the depth of XML indent- Returns:
- the properties.
-
readProperties
Loads the XML properties of a marker.- Overrides:
readProperties
in classAbstractMarker
- Parameters:
element
- DOM element to read marker properties fromchart
- the Chart this marker belongs to, not null
-
getFirstValueFormula
Get the Formula which returns the first value of the marker.- Returns:
- the firstValueFormula, can be null when no formula was set
- Since:
- 11.3
-
setFirstValueFormula
Set the Formula for the first value of the marker.
Expected type is double or datetime.- Parameters:
firstValueFormula
- the firstValueFormula to setisDate
- true when this is for a date-axis, so the return type of the formula is DateTime, otherwise it is NUMBER- Throws:
IllegalArgumentException
- if the given formula has a different type thanFORMULA_PROPERTY
- Since:
- 11.3
-
getSecondValueFormula
Get the Formula which returns the second value for the marker.- Returns:
- the secondValueFormula, can be null when no formula was set
- Since:
- 11.3
-
setSecondValueFormula
Set the Formula for the second value of the marker.- Parameters:
secondValueFormula
- the secondValueFormula to setisDate
- true when this is for a date-axis, so the return type of the formula is DateTime, otherwise it is NUMBER- Throws:
IllegalArgumentException
- if the given formula has a different type thanFORMULA_PROPERTY
- Since:
- 11.3
-
isFirstValueFormulaDate
public boolean isFirstValueFormulaDate()Get whether the firstValueFormula returns Date- Returns:
- the firstValueFormulaIsDate
- Since:
- 11.3
-
isSecondValueFormulaDate
public boolean isSecondValueFormulaDate()Get whether the secondValueFormula returns Date- Returns:
- the secondValueFormulaIsDate
- Since:
- 11.3
-