public class CartesianCustomAnnotation extends CartesianChartAnnotation
RadCartesianChartView
.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 |
---|
CartesianCustomAnnotation(CartesianAxis verticalAxis,
CartesianAxis horizontalAxis,
Object verticalValue,
Object horizontalValue,
Object content)
Creates a new instance of the
CartesianCustomAnnotation class with a specified
Context , a vertical and a horizontal axes, values for the vertical and horizontal axes,
value for the content of the annotation, styleable attributes and a default style. |
Modifier and Type | Method and Description |
---|---|
Object |
getContent()
Gets the current content.
|
CustomAnnotationRenderer |
getContentRenderer() |
HorizontalAlignment |
getHorizontalAlignment()
Gets the current horizontal alignment.
|
CartesianAxis |
getHorizontalAxis()
Gets the current horizontal axis.
|
double |
getHorizontalOffset()
Gets the current horizontal offset.
|
Object |
getHorizontalValue()
Gets the current horizontal value.
|
ChartAnnotationModel |
getModel()
Gets an instance of the
ChartAnnotationModel class representing the Chart engine model
associated with this annotation. |
VerticalAlignment |
getVerticalAlignment()
Gets the current vertical alignment.
|
CartesianAxis |
getVerticalAxis()
Gets the current vertical axis.
|
double |
getVerticalOffset()
Gets the current vertical offset.
|
Object |
getVerticalValue()
Gets the current vertical value.
|
void |
setContent(Object value)
Sets the current content.
|
void |
setContentRenderer(CustomAnnotationRenderer contentRenderer) |
void |
setHorizontalAlignment(HorizontalAlignment value)
Sets the current horizontal alignment.
|
void |
setHorizontalAxis(CartesianAxis value)
Sets the current horizontal axis.
|
void |
setHorizontalOffset(double value)
Sets the current horizontal offset.
|
void |
setHorizontalValue(Object value)
Sets the current horizontal value.
|
void |
setVerticalAlignment(VerticalAlignment value)
Sets the current vertical alignment.
|
void |
setVerticalAxis(CartesianAxis value)
Sets the current vertical axis.
|
void |
setVerticalOffset(double value)
Sets the current vertical offset.
|
void |
setVerticalValue(Object value)
Sets the current vertical value.
|
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 CartesianCustomAnnotation(CartesianAxis verticalAxis, CartesianAxis horizontalAxis, Object verticalValue, Object horizontalValue, Object content)
CartesianCustomAnnotation
class with a specified
Context
, a vertical and a horizontal axes, values for the vertical and horizontal axes,
value for the content of the annotation, styleable attributes and a default style.verticalAxis
- the axis that will be used as vertical.horizontalAxis
- the axis that will be used as horizontal.verticalValue
- the value stating the position of the annotation along the vertical axis.horizontalValue
- the value stating the position of the annotation along the horizontal axis.content
- the content to be displayed in the current annotation.public HorizontalAlignment getHorizontalAlignment()
HorizontalAlignment
public void setHorizontalAlignment(HorizontalAlignment value)
value
- the new horizontal alignment.HorizontalAlignment
public VerticalAlignment getVerticalAlignment()
VerticalAlignment
public void setVerticalAlignment(VerticalAlignment value)
value
- the new vertical alignment.VerticalAlignment
public CartesianAxis getHorizontalAxis()
CartesianAxis
public void setHorizontalAxis(CartesianAxis value)
value
- the new horizontal axis.CartesianAxis
public CartesianAxis getVerticalAxis()
CartesianAxis
public void setVerticalAxis(CartesianAxis value)
value
- the new vertical axis.CartesianAxis
public Object getHorizontalValue()
public void setHorizontalValue(Object value)
value
- the new horizontal value.public Object getVerticalValue()
public void setVerticalValue(Object value)
value
- the new vertical value.public Object getContent()
public void setContent(Object value)
value
- the new content.public double getHorizontalOffset()
public void setHorizontalOffset(double value)
value
- the new horizontal offset.public double getVerticalOffset()
public void setVerticalOffset(double value)
value
- the new vertical offset.public ChartAnnotationModel getModel()
ChartAnnotation
ChartAnnotationModel
class representing the Chart engine model
associated with this annotation.getModel
in class ChartAnnotation
ChartAnnotationModel
instance.public CustomAnnotationRenderer getContentRenderer()
public void setContentRenderer(CustomAnnotationRenderer contentRenderer)