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 StringgetBackdropColorAsString()Returns the background color of the point label.IsDefaultPaddinggetBackdropPadding()Returns the padding of label backdrop.intgetBorderRadius()Returns the border radius (in pixels).StringgetColorAsString()Returns the font color as string.IsDefaultFontgetFont()Returns the font element.intgetPadding()Returns the padding between chart and point labels, in pixels.booleanisCentered()Returns if point labels are centered.booleanisDisplay()Returns if the title is shown.
-
-
-
Method Detail
-
getFont
public IsDefaultFont getFont()
Description copied from interface:IsDefaultFontContainerReturns the font element.- Specified by:
getFontin interfaceIsDefaultFontContainer- Returns:
- the font
-
getColorAsString
public String getColorAsString()
Description copied from interface:IsDefaultFontContainerReturns the font color as string.- Specified by:
getColorAsStringin interfaceIsDefaultFontContainer- Returns:
- font color as string
-
isDisplay
public boolean isDisplay()
Description copied from interface:IsDefaultPointLabelsReturns if the title is shown.- Specified by:
isDisplayin interfaceIsDefaultPointLabels- Returns:
- if the title is shown.
-
getBackdropPadding
public IsDefaultPadding getBackdropPadding()
Description copied from interface:IsDefaultPointLabelsReturns the padding of label backdrop.- Specified by:
getBackdropPaddingin interfaceIsDefaultPointLabels- Returns:
- padding of label backdrop.
-
getPadding
public int getPadding()
Description copied from interface:IsDefaultPointLabelsReturns the padding between chart and point labels, in pixels.- Specified by:
getPaddingin interfaceIsDefaultPointLabels- Returns:
- padding the padding between chart and point labels, in pixels.
-
getBackdropColorAsString
public String getBackdropColorAsString()
Description copied from interface:IsDefaultPointLabelsReturns the background color of the point label.- Specified by:
getBackdropColorAsStringin interfaceIsDefaultPointLabels- Returns:
- the background color of the point label
-
isCentered
public boolean isCentered()
Description copied from interface:IsDefaultPointLabelsReturns if point labels are centered.- Specified by:
isCenteredin interfaceIsDefaultPointLabels- Returns:
- if point labels are centered
-
getBorderRadius
public int getBorderRadius()
Description copied from interface:IsDefaultPointLabelsReturns the border radius (in pixels).- Specified by:
getBorderRadiusin interfaceIsDefaultPointLabels- Returns:
- the border radius (in pixels).
-
-