public abstract class ChartAnnotation extends ChartElementPresenter
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_Z_INDEX |
Constructor and Description |
---|
ChartAnnotation()
Creates an instance of the
ChartAnnotation class with a specified application context. |
Modifier and Type | Method and Description |
---|---|
boolean |
getClipToPlotArea()
Gets a boolean value determining whether the annotation
will be visually clipped to fit the plot area.
|
abstract ChartAnnotationModel |
getModel()
Gets an instance of the
ChartAnnotationModel class representing the Chart engine model
associated with this annotation. |
void |
render(Canvas canvas)
Used to render the current presenter instance onto the passed canvas object.
|
void |
setClipToPlotArea(boolean value)
Sets a boolean value determining whether the annotation will be visually clipped
to fit the plot area.
|
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 static final int ANNOTATION_Z_INDEX
public ChartAnnotation()
ChartAnnotation
class with a specified application context.public boolean getClipToPlotArea()
true
if the annotation will be clipped, otherwise false
.public void setClipToPlotArea(boolean value)
value
- true
if the annotation will be clipped, otherwise false
.public abstract ChartAnnotationModel getModel()
ChartAnnotationModel
class representing the Chart engine model
associated with this annotation.ChartAnnotationModel
instance.public void render(Canvas canvas)
PresenterBase
render
in class PresenterBase
canvas
- the canvas onto which the presenter is to be rendered.