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 SummaryAll 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.DisplaygetDisplay()Returns if the labels is shown.IsDefaultFontgetFont()Returns the font element.intgetPadding()Returns the padding between chart and point labels, in pixels.booleanisCentered()Returns if point labels are centered.
 
- 
- 
- 
Method Detail- 
getFontpublic IsDefaultFont getFont() Description copied from interface:IsDefaultFontContainerReturns the font element.- Specified by:
- getFontin interface- IsDefaultFontContainer
- Returns:
- the font
 
 - 
getColorAsStringpublic String getColorAsString() Description copied from interface:IsDefaultFontContainerReturns the font color as string.- Specified by:
- getColorAsStringin interface- IsDefaultFontContainer
- Returns:
- font color as string
 
 - 
getDisplaypublic Display getDisplay() Description copied from interface:IsDefaultPointLabelsReturns if the labels is shown.- Specified by:
- getDisplayin interface- IsDefaultPointLabels
- Returns:
- if the labels is shown.
 
 - 
getBackdropPaddingpublic IsDefaultPadding getBackdropPadding() Description copied from interface:IsDefaultPointLabelsReturns the padding of label backdrop.- Specified by:
- getBackdropPaddingin interface- IsDefaultPointLabels
- Returns:
- padding of label backdrop.
 
 - 
getPaddingpublic int getPadding() Description copied from interface:IsDefaultPointLabelsReturns the padding between chart and point labels, in pixels.- Specified by:
- getPaddingin interface- IsDefaultPointLabels
- Returns:
- padding the padding between chart and point labels, in pixels.
 
 - 
getBackdropColorAsStringpublic String getBackdropColorAsString() Description copied from interface:IsDefaultPointLabelsReturns the background color of the point label.- Specified by:
- getBackdropColorAsStringin interface- IsDefaultPointLabels
- Returns:
- the background color of the point label
 
 - 
isCenteredpublic boolean isCentered() Description copied from interface:IsDefaultPointLabelsReturns if point labels are centered.- Specified by:
- isCenteredin interface- IsDefaultPointLabels
- Returns:
- if point labels are centered
 
 - 
getBorderRadiuspublic int getBorderRadius() Description copied from interface:IsDefaultPointLabelsReturns the border radius (in pixels).- Specified by:
- getBorderRadiusin interface- IsDefaultPointLabels
- Returns:
- the border radius (in pixels).
 
 
- 
 
-