public class LineMarker extends AbstractMarker
AbstractMarker
,
Serialized FormDEFAULT_ALPHA, DEFAULT_COLOR, DEFAULT_LINE_STYLE, DEFAULT_LINE_WIDTH, DEFAULT_VALUE
Constructor and Description |
---|
LineMarker()
Creates a line marker on the 0 line of current chart axis.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
double |
getValue()
Returns the value (position) of this marker.
|
FormulaField |
getValueFormula()
Get the Formula for the value of the marker.
|
boolean |
isValueFormulaDate()
Get whether the valueFormulam returns Date
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Loads the XML properties of a marker.
|
void |
setValue(double value)
Sets the value (position) for this marker.
|
void |
setValueFormula(FormulaField valueFormula,
boolean isDate)
Set the Formula which returns the value for the marker.
|
getColor, getLineStyle, getLineWidth, getMarkerReferencesIfExist, setColor, setLineStyle, setLineWidth
public LineMarker()
public double getValue()
setValue(double)
public void setValue(double value)
value
- the positiongetValue()
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 void setValueFormula(FormulaField valueFormula, boolean isDate)
valueFormula
- the new value-formulaisDate
- 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 getValueFormula()
public boolean isValueFormulaDate()
Copyright © 1999-2020 by i-net software GmbH