public abstract class AbstractMarker
extends java.lang.Object
implements java.io.Serializable
LineMarker
,
IntervalMarker
,
Serialized FormModifier and Type | Field and Description |
---|---|
static float |
DEFAULT_ALPHA
Default alpha transparency value of the marker.
|
static int |
DEFAULT_COLOR
Default line marker color (a ABGR value representation).
|
static int |
DEFAULT_LINE_STYLE
Default line style of the marker.
|
static int |
DEFAULT_LINE_WIDTH
Default line width of the marker.
|
static double |
DEFAULT_VALUE
Default value.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractMarker()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor()
Returns the color of the line or area of this marker.
|
int |
getLineStyle()
Returns the marker's line style.
|
int |
getLineWidth()
Returns the line width in twips.
|
static java.util.List<FormulaField> |
getMarkerReferencesIfExist(com.inet.report.chart.axis.MarkerAxis... axis)
Get all references to FormulaFields for all given Marker-Axis.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Loads the XML properties of a marker.
|
void |
setColor(int markerColor)
Sets the color of the line or area of this marker.
|
void |
setLineStyle(int lineStyle)
Sets the marker's line style.
|
void |
setLineWidth(int lineWidth)
Sets the marker line width in twips.
|
public static final int DEFAULT_COLOR
public static final int DEFAULT_LINE_STYLE
public static final int DEFAULT_LINE_WIDTH
public static final float DEFAULT_ALPHA
public static final double DEFAULT_VALUE
public int getColor()
setColor(int)
,
ColorUtils.toJavaColor(int)
public void setColor(int markerColor)
markerColor
- the ABGR value representing the marker colorjava.lang.IllegalArgumentException
- if the color is RDC.COLOR_NO_COLOR
.getColor()
,
ColorUtils.toCcColor(Color)
public int getLineStyle()
setLineStyle(int)
,
BorderPropertiesConstants.LINE_STYLE_DASHED
,
BorderPropertiesConstants.LINE_STYLE_DOTTED
,
BorderPropertiesConstants.LINE_STYLE_SINGLE
,
BorderPropertiesConstants.NO_LINE
,
DEFAULT_LINE_STYLE
public void setLineStyle(int lineStyle)
lineStyle
- the line style of the markerjava.lang.IllegalArgumentException
- by unsupported line style.getLineStyle()
,
BorderPropertiesConstants.LINE_STYLE_DASHED
,
BorderPropertiesConstants.LINE_STYLE_DOTTED
,
BorderPropertiesConstants.LINE_STYLE_SINGLE
,
BorderPropertiesConstants.NO_LINE
,
DEFAULT_LINE_STYLE
public int getLineWidth()
setLineWidth(int)
public void setLineWidth(int lineWidth)
lineWidth
- the line widthjava.lang.IllegalArgumentException
- if width is less than 1.getLineWidth()
,
DEFAULT_LINE_WIDTH
protected java.lang.StringBuilder getSubProperties(int depth)
depth
- the depth of XML indentpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
element
- DOM element to read marker properties fromchart
- the Chart this marker belongs to, not nullpublic static java.util.List<FormulaField> getMarkerReferencesIfExist(com.inet.report.chart.axis.MarkerAxis... axis)
axis
- all axis to get referenced FormulaFields forCopyright © 1999-2020 by i-net software GmbH