public class RadialPointLabels extends Object implements IsScriptableFontProvider<ScaleContext>
Modifier and Type | Method and Description |
---|---|
Axis |
getAxis()
Returns the axis instance.
|
IsColor |
getBackdropColor()
Returns the background color of the point label.
|
String |
getBackdropColorAsString()
Returns the background color of the point label.
|
ColorCallback<ScaleContext> |
getBackdropColorCallback()
Returns the backdrop color callback, if set, otherwise
null . |
Padding |
getBackdropPadding()
Returns the padding of label backdrop.
|
PointLabelCallback |
getCallback()
Returns the user callback to change point labels.
|
IsColor |
getColor()
Returns the font color.
|
String |
getColorAsString()
Returns the font color as string.
|
ColorCallback<ScaleContext> |
getColorCallback()
Returns the color callback, if set, otherwise
null . |
Font |
getFont()
Returns the font element.
|
FontCallback<ScaleContext> |
getFontCallback()
Returns the font callback, if set, otherwise
null . |
int |
getPadding()
Returns the padding between chart and point labels, in pixels.
|
SimplePaddingCallback |
getPaddingCallback()
Returns the padding callback, if set, otherwise
null . |
boolean |
isDisplay()
If true, labels are shown
|
void |
setBackdropColor(ColorCallback<ScaleContext> backdropColorCallback)
Sets the the backdrop color callback.
|
void |
setBackdropColor(IsColor backdropColor)
Sets the background color of the point label.
|
void |
setBackdropColor(NativeCallback backdropColorCallback)
Sets the the backdrop color callback.
|
void |
setBackdropColor(String backdropColor)
Sets the background color of the point label.
|
void |
setCallback(PointLabelCallback callback)
Sets the user callback to change point labels.
|
void |
setColor(ColorCallback<ScaleContext> colorCallback)
Sets the the color callback.
|
void |
setColor(IsColor color)
Sets the font color.
|
void |
setColor(NativeCallback colorCallback)
Sets the the color callback.
|
void |
setColor(String color)
Sets the font color.
|
void |
setDisplay(boolean display)
If true, labels are shown
|
void |
setFont(FontCallback<ScaleContext> fontCallback)
Sets the the font callback.
|
void |
setFont(NativeCallback fontCallback)
Sets the the font callback.
|
void |
setPadding(int padding)
Sets the padding between chart and point labels, in pixels.
|
void |
setPadding(NativeCallback paddingCallback)
Sets the the padding callback.
|
void |
setPadding(SimplePaddingCallback paddingCallback)
Sets the the padding callback.
|
public Padding getBackdropPadding()
public Font getFont()
public void setColor(IsColor color)
color
- font color.public void setColor(String color)
color
- font color.public String getColorAsString()
public IsColor getColor()
public void setDisplay(boolean display)
display
- if true, labels are shownpublic boolean isDisplay()
public void setPadding(int padding)
padding
- the padding between chart and point labels, in pixels.public int getPadding()
public void setBackdropColor(IsColor backdropColor)
backdropColor
- the background color of the point labelpublic void setBackdropColor(String backdropColor)
backdropColor
- the background color of the point labelpublic String getBackdropColorAsString()
public IsColor getBackdropColor()
public PointLabelCallback getCallback()
public void setCallback(PointLabelCallback callback)
callback
- the callback to setpublic FontCallback<ScaleContext> getFontCallback()
null
.getFontCallback
in interface IsScriptableFontProvider<ScaleContext>
null
.public void setFont(FontCallback<ScaleContext> fontCallback)
setFont
in interface IsScriptableFontProvider<ScaleContext>
fontCallback
- the font callback to setpublic void setFont(NativeCallback fontCallback)
setFont
in interface IsScriptableFontProvider<ScaleContext>
fontCallback
- the font callback to setpublic SimplePaddingCallback getPaddingCallback()
null
.null
.public void setPadding(SimplePaddingCallback paddingCallback)
paddingCallback
- the padding callback to setpublic void setPadding(NativeCallback paddingCallback)
paddingCallback
- the padding callback to setpublic ColorCallback<ScaleContext> getColorCallback()
null
.null
.public void setColor(ColorCallback<ScaleContext> colorCallback)
colorCallback
- the color callback to setpublic void setColor(NativeCallback colorCallback)
colorCallback
- the color callback to setpublic ColorCallback<ScaleContext> getBackdropColorCallback()
null
.null
.public void setBackdropColor(ColorCallback<ScaleContext> backdropColorCallback)
backdropColorCallback
- the backdrop color callback to setpublic void setBackdropColor(NativeCallback backdropColorCallback)
backdropColorCallback
- the backdrop color callback to setpublic final Axis getAxis()