public class IntervalMarker extends AbstractMarker
AbstractMarker
,
Serialized FormDEFAULT_ALPHA, DEFAULT_COLOR, DEFAULT_LINE_STYLE, DEFAULT_LINE_WIDTH, DEFAULT_VALUE
Constructor and Description |
---|
IntervalMarker()
Creates a marker area with two values: the first (start value) and the second (end value).
|
Modifier and Type | Method and Description |
---|---|
double |
getFirstValue()
Returns the first value (lower bound) of this marker.
|
FormulaField |
getFirstValueFormula()
Get the Formula which returns the first value of the marker.
|
double |
getSecondValue()
Returns the end value (upper bound) of this marker.
|
FormulaField |
getSecondValueFormula()
Get the Formula which returns the second value for the marker.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
boolean |
isFirstValueFormulaDate()
Get whether the firstValueFormula returns Date
|
boolean |
isSecondValueFormulaDate()
Get whether the secondValueFormula returns Date
|
void |
readProperties(org.w3c.dom.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.
|
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.
|
getColor, getLineStyle, getLineWidth, getMarkerReferencesIfExist, setColor, setLineStyle, setLineWidth
public IntervalMarker()
public double getFirstValue()
public void setFirstValue(double firstValue)
firstValue
- the start valuegetFirstValue()
,
setSecondValue(double)
public double getSecondValue()
public void setSecondValue(double secondValue)
secondValue
- the end valuegetSecondValue()
,
setFirstValue(double)
protected java.lang.StringBuilder getSubProperties(int depth)
getSubProperties
in class AbstractMarker
depth
- the depth of XML indentpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
readProperties
in class AbstractMarker
element
- DOM element to read marker properties fromchart
- the Chart this marker belongs to, not nullpublic FormulaField getFirstValueFormula()
public void setFirstValueFormula(FormulaField firstValueFormula, boolean isDate)
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 NUMBERjava.lang.IllegalArgumentException
- if the given formula has a different type than FORMULA_PROPERTY
public FormulaField getSecondValueFormula()
public void setSecondValueFormula(FormulaField secondValueFormula, boolean isDate)
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 NUMBERjava.lang.IllegalArgumentException
- if the given formula has a different type than FORMULA_PROPERTY
public boolean isFirstValueFormulaDate()
public boolean isSecondValueFormulaDate()
Copyright © 1999-2020 by i-net software GmbH