public abstract class ChartLabelAnnotation extends ChartAnnotation
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL_ALIGNMENT_PROPERTY_KEY |
static int |
HORIZONTAL_OFFSET_PROPERTY_KEY |
static int |
LABEL_FORMAT_PROPERTY_KEY |
static int |
LABEL_LOCATION_PROPERTY_KEY |
static int |
VERTICAL_ALIGNMENT_PROPERTY_KEY |
static int |
VERTICAL_OFFSET_PROPERTY_KEY |
ANNOTATION_Z_INDEX
Constructor and Description |
---|
ChartLabelAnnotation()
Creates a new instance of the
ChartLabelAnnotation class. |
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Gets the current label.
|
String |
getLabelFormat()
Gets a string representing the format used to display the annotation.
|
HorizontalAlignment |
getLabelHorizontalAlignment()
Gets a value from the
HorizontalAlignment enum
determining the way the annotation is aligned horizontally in its bounds. |
double |
getLabelHorizontalOffset()
Gets a boolean value determining the horizontal offset of the annotation relatively to its
original bounds.
|
ChartAnnotationLabelLocation |
getLabelLocation()
Gets a value from the
ChartAnnotationLabelLocation
enum describing the location of the annotation related to its parent. |
float |
getLabelSize()
Gets the label size in pixels.
|
VerticalAlignment |
getLabelVerticalAlignment()
Gets a value from the
VerticalAlignment enum
determining the way the annotation is aligned vertically in its bounds. |
double |
getLabelVerticalOffset()
Gets a boolean value determining the vertical offset of the annotation relatively to its
original bounds.
|
void |
setLabel(String value)
Sets the current label.
|
void |
setLabelFormat(String value)
Sets the format string used to display the annotation.
|
void |
setLabelHorizontalAlignment(HorizontalAlignment value)
Sets a value from the
HorizontalAlignment enum
determining the way the annotation is aligned horizontally in its bounds. |
void |
setLabelHorizontalOffset(double value)
Sets a boolean value determining the horizontal offset of the annotation relatively to its
original bounds.
|
void |
setLabelLocation(ChartAnnotationLabelLocation value)
Sets a value from the
ChartAnnotationLabelLocation
enum determining the location of the annotation relatively to its parent. |
void |
setLabelSize(float value)
Sets the label size in pixels.
|
void |
setLabelVerticalAlignment(VerticalAlignment value)
Sets a value from the
VerticalAlignment enum
determining the way the annotation is aligned vertically in its bounds. |
void |
setLabelVerticalOffset(double value)
Sets a boolean value determining the vertical offset of the annotation relatively to its
original bounds.
|
getClipToPlotArea, getModel, 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 static final int LABEL_FORMAT_PROPERTY_KEY
public static final int LABEL_LOCATION_PROPERTY_KEY
public static final int HORIZONTAL_ALIGNMENT_PROPERTY_KEY
public static final int VERTICAL_ALIGNMENT_PROPERTY_KEY
public static final int HORIZONTAL_OFFSET_PROPERTY_KEY
public static final int VERTICAL_OFFSET_PROPERTY_KEY
public ChartLabelAnnotation()
ChartLabelAnnotation
class.public String getLabelFormat()
public void setLabelFormat(String value)
value
- the format string.public ChartAnnotationLabelLocation getLabelLocation()
ChartAnnotationLabelLocation
enum describing the location of the annotation related to its parent.public void setLabelLocation(ChartAnnotationLabelLocation value)
ChartAnnotationLabelLocation
enum determining the location of the annotation relatively to its parent.value
- the annotation location to set.public HorizontalAlignment getLabelHorizontalAlignment()
HorizontalAlignment
enum
determining the way the annotation is aligned horizontally in its bounds.public void setLabelHorizontalAlignment(HorizontalAlignment value)
HorizontalAlignment
enum
determining the way the annotation is aligned horizontally in its bounds.value
- the horizontal alignment.public VerticalAlignment getLabelVerticalAlignment()
VerticalAlignment
enum
determining the way the annotation is aligned vertically in its bounds.public void setLabelVerticalAlignment(VerticalAlignment value)
VerticalAlignment
enum
determining the way the annotation is aligned vertically in its bounds.value
- the vertical alignment.public double getLabelHorizontalOffset()
public void setLabelHorizontalOffset(double value)
value
- the horizontal offset.public double getLabelVerticalOffset()
public void setLabelVerticalOffset(double value)
value
- the vertical offset.public String getLabel()
public void setLabel(String value)
value
- the new label.public float getLabelSize()
public void setLabelSize(float value)
value
- The new label size.