Class DefaultChartPointLabels
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartPointLabels
-
- All Implemented Interfaces:
IsDefaultFontContainer
,IsDefaultPointLabels
public final class DefaultChartPointLabels extends Object implements IsDefaultPointLabels
Defaults for point labels option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBackdropColorAsString()
Returns the background color of the point label.IsDefaultPadding
getBackdropPadding()
Returns the padding of label backdrop.int
getBorderRadius()
Returns the border radius (in pixels).String
getColorAsString()
Returns the font color as string.Display
getDisplay()
Returns if the labels is shown.IsDefaultFont
getFont()
Returns the font element.int
getPadding()
Returns the padding between chart and point labels, in pixels.boolean
isCentered()
Returns if point labels are centered.
-
-
-
Method Detail
-
getFont
public IsDefaultFont getFont()
Description copied from interface:IsDefaultFontContainer
Returns the font element.- Specified by:
getFont
in interfaceIsDefaultFontContainer
- Returns:
- the font
-
getColorAsString
public String getColorAsString()
Description copied from interface:IsDefaultFontContainer
Returns the font color as string.- Specified by:
getColorAsString
in interfaceIsDefaultFontContainer
- Returns:
- font color as string
-
getDisplay
public Display getDisplay()
Description copied from interface:IsDefaultPointLabels
Returns if the labels is shown.- Specified by:
getDisplay
in interfaceIsDefaultPointLabels
- Returns:
- if the labels is shown.
-
getBackdropPadding
public IsDefaultPadding getBackdropPadding()
Description copied from interface:IsDefaultPointLabels
Returns the padding of label backdrop.- Specified by:
getBackdropPadding
in interfaceIsDefaultPointLabels
- Returns:
- padding of label backdrop.
-
getPadding
public int getPadding()
Description copied from interface:IsDefaultPointLabels
Returns the padding between chart and point labels, in pixels.- Specified by:
getPadding
in interfaceIsDefaultPointLabels
- Returns:
- padding the padding between chart and point labels, in pixels.
-
getBackdropColorAsString
public String getBackdropColorAsString()
Description copied from interface:IsDefaultPointLabels
Returns the background color of the point label.- Specified by:
getBackdropColorAsString
in interfaceIsDefaultPointLabels
- Returns:
- the background color of the point label
-
isCentered
public boolean isCentered()
Description copied from interface:IsDefaultPointLabels
Returns if point labels are centered.- Specified by:
isCentered
in interfaceIsDefaultPointLabels
- Returns:
- if point labels are centered
-
getBorderRadius
public int getBorderRadius()
Description copied from interface:IsDefaultPointLabels
Returns the border radius (in pixels).- Specified by:
getBorderRadius
in interfaceIsDefaultPointLabels
- Returns:
- the border radius (in pixels).
-
-