Class DefaultPointLabels
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultPointLabels
-
- All Implemented Interfaces:
IsDefaultFontContainer
,IsDefaultPointLabels
public final class DefaultPointLabels extends Object implements IsDefaultPointLabels
CHART.JS default values for POINTLABELS element.- 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.String
getColorAsString()
Returns the font color as string.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.boolean
isDisplay()
Returns if the title is shown.
-
-
-
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
-
isDisplay
public boolean isDisplay()
Description copied from interface:IsDefaultPointLabels
Returns if the title is shown.- Specified by:
isDisplay
in interfaceIsDefaultPointLabels
- Returns:
- if the title 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
-
-