public class CartesianPlotBandAnnotation extends CartesianStrokedAnnotation
CartesianStrokedAnnotation
that is used to display a rectangular shaped
annotation in cartesian charts.Modifier and Type | Field and Description |
---|---|
static int |
FILL_COLOR_PROPERTY_KEY |
STROKE_COLOR_PROPERTY_KEY, STROKE_WIDTH_PROPERTY_KEY
HORIZONTAL_ALIGNMENT_PROPERTY_KEY, HORIZONTAL_OFFSET_PROPERTY_KEY, LABEL_FORMAT_PROPERTY_KEY, LABEL_LOCATION_PROPERTY_KEY, VERTICAL_ALIGNMENT_PROPERTY_KEY, VERTICAL_OFFSET_PROPERTY_KEY
ANNOTATION_Z_INDEX
Constructor and Description |
---|
CartesianPlotBandAnnotation(CartesianAxis axis,
Object from,
Object to)
Creates an instance of the
CartesianPlotBandAnnotation using a specified
Context , an axis on which the annotation will be placed on, a value stating where the
annotation will begin, a value stating where the annotation will end, a set of styleable
attributes and a default style. |
Modifier and Type | Method and Description |
---|---|
int |
getFillColor()
Gets the current color index that specifies how the shape's interior is painted.
|
Object |
getFrom()
Gets the current starting point of the annotation.
|
ChartAnnotationModel |
getModel()
Gets an instance of the
ChartAnnotationModel class representing the Chart engine model
associated with this annotation. |
Object |
getTo()
Gets the current ending point of the annotation.
|
void |
setFillColor(int value)
Sets the current color index that specifies how the shape's interior is painted.
|
void |
setFrom(Object value)
Sets the current starting point of the annotation.
|
void |
setTo(Object value)
Sets the current ending point of the annotation.
|
getStrokeColor, getStrokeEffect, getStrokeWidth, setStrokeColor, setStrokeEffect, setStrokeWidth
getAxis, setAxis
getLabel, getLabelFormat, getLabelHorizontalAlignment, getLabelHorizontalOffset, getLabelLocation, getLabelSize, getLabelVerticalAlignment, getLabelVerticalOffset, setLabel, setLabelFormat, setLabelHorizontalAlignment, setLabelHorizontalOffset, setLabelLocation, setLabelSize, setLabelVerticalAlignment, setLabelVerticalOffset
getClipToPlotArea, render, setClipToPlotArea
attach, detach, getCanApplyPalette, getChart, getCollectionIndex, getPalette, getZIndex, invalidatePalette, onPaletteInvalidated, onPaletteUpdated, requestLayout, requestRender, setZIndex, updatePalette
getPaletteFamily, getPaletteFamilyCore, isLoaded, isPaletteApplied, isVisible, measureContent, paletteFamily, postRender, refreshNode, setCanApplyPalette, setPaletteFamily, setVisible, setVisible
getValue, resetPropertyValue, setValue, setValue
public CartesianPlotBandAnnotation(CartesianAxis axis, Object from, Object to)
CartesianPlotBandAnnotation
using a specified
Context
, an axis on which the annotation will be placed on, a value stating where the
annotation will begin, a value stating where the annotation will end, a set of styleable
attributes and a default style.axis
- the axis on which the annotation will be placed.from
- the value stating where the annotation will begin.to
- the value stating where the annotation will end.CartesianAxis
public Object getFrom()
public void setFrom(Object value)
value
- the new from.public Object getTo()
public void setTo(Object value)
value
- the new to.public int getFillColor()
public void setFillColor(int value)
value
- the new color index.public ChartAnnotationModel getModel()
ChartAnnotation
ChartAnnotationModel
class representing the Chart engine model
associated with this annotation.getModel
in class ChartAnnotation
ChartAnnotationModel
instance.