public interface ChartLabelRenderer
Modifier and Type | Method and Description |
---|---|
Typeface |
getLabelFont()
Gets the labels
Typeface |
int |
getLabelFontStyle()
Gets the labels font style.
|
String |
getLabelFormat()
Gets the label format string.
|
float |
getLabelMargin()
Gets the margin of the labels.
|
float |
getLabelSize()
Gets the label size.
|
int |
getLabelTextColor()
Gets the labels color.
|
Function<Object,String> |
getLabelValueToStringConverter() |
void |
renderLabel(Canvas canvas,
ChartNode dataPoint)
|
void |
setLabelFont(Typeface value)
Sets the labels
Typeface . |
void |
setLabelFontStyle(int value)
Sets the labels font style.
|
void |
setLabelFormat(String format)
Sets the label format string.
|
void |
setLabelMargin(float offset)
Sets the margin of the labels.
|
void |
setLabelSize(float value)
Sets the label size.
|
void |
setLabelTextColor(int color)
Sets the labels color.
|
void |
setLabelValueToStringConverter(Function<Object,String> converter) |
void renderLabel(Canvas canvas, ChartNode dataPoint)
canvas
- The canvas to draw on.dataPoint
- The ChartNode
that is related to the label. For a series it will be a DataPoint
. For an Axis
it will be an AxisTickModel
.int getLabelTextColor()
void setLabelTextColor(int color)
color
- The labels color.float getLabelSize()
void setLabelSize(float value)
value
- The label size.void setLabelFont(Typeface value)
Typeface
.value
- The new labels typeface.int getLabelFontStyle()
void setLabelFontStyle(int value)
value
- The new labels font style.String getLabelFormat()
void setLabelFormat(String format)
format
- The label format string. The format string is a standard Java format string.
For more information see the java formatter help page.float getLabelMargin()
void setLabelMargin(float offset)
offset
- The new labels margin.