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.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
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
-
-