public class CartesianAxisLabelRenderer extends Object implements ChartLabelRenderer
Constructor and Description |
---|
CartesianAxisLabelRenderer(CartesianAxis axis) |
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() |
RadSize |
measureLabel(AxisLabelModel label,
Object content) |
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 value)
Sets the label format string.
|
void |
setLabelMargin(float value)
Sets the margin of the labels.
|
void |
setLabelSize(float value)
Sets the label size.
|
void |
setLabelTextColor(int value)
Sets the labels color.
|
void |
setLabelValueToStringConverter(Function<Object,String> converter) |
public CartesianAxisLabelRenderer(CartesianAxis axis)
public Typeface getLabelFont()
ChartLabelRenderer
Typeface
getLabelFont
in interface ChartLabelRenderer
public void setLabelFont(Typeface value)
ChartLabelRenderer
Typeface
.setLabelFont
in interface ChartLabelRenderer
value
- The new labels typeface.public float getLabelMargin()
ChartLabelRenderer
getLabelMargin
in interface ChartLabelRenderer
public void setLabelMargin(float value)
ChartLabelRenderer
setLabelMargin
in interface ChartLabelRenderer
value
- The new labels margin.public int getLabelTextColor()
ChartLabelRenderer
getLabelTextColor
in interface ChartLabelRenderer
public void setLabelTextColor(int value)
ChartLabelRenderer
setLabelTextColor
in interface ChartLabelRenderer
value
- The labels color.public int getLabelFontStyle()
ChartLabelRenderer
getLabelFontStyle
in interface ChartLabelRenderer
public void setLabelFontStyle(int value)
ChartLabelRenderer
setLabelFontStyle
in interface ChartLabelRenderer
value
- The new labels font style.public float getLabelSize()
ChartLabelRenderer
getLabelSize
in interface ChartLabelRenderer
public void setLabelSize(float value)
ChartLabelRenderer
setLabelSize
in interface ChartLabelRenderer
value
- The label size.public Function<Object,String> getLabelValueToStringConverter()
getLabelValueToStringConverter
in interface ChartLabelRenderer
public void setLabelValueToStringConverter(Function<Object,String> converter)
setLabelValueToStringConverter
in interface ChartLabelRenderer
public String getLabelFormat()
ChartLabelRenderer
getLabelFormat
in interface ChartLabelRenderer
public void setLabelFormat(String value)
ChartLabelRenderer
setLabelFormat
in interface ChartLabelRenderer
value
- The label format string. The format string is a standard Java format string.
For more information see the java formatter help page.public void renderLabel(Canvas canvas, ChartNode dataPoint)
ChartLabelRenderer
renderLabel
in interface ChartLabelRenderer
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
.public RadSize measureLabel(AxisLabelModel label, Object content)