Interface IsDefaultLegendLabels
-
- All Superinterfaces:
IsDefaultBoxHandler
,IsDefaultFontContainer
,IsDefaultPointStyleHandler
- All Known Implementing Classes:
DefaultChartLegendLabels
,DefaultLegendLabels
,LegendLabels
public interface IsDefaultLegendLabels extends IsDefaultBoxHandler, IsDefaultPointStyleHandler, IsDefaultFontContainer
Interface to define legend labels object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBorderRadius()
Returns the the border radius to use on the legend.int
getPadding()
Returns the padding to apply around labels.double
getPointStyleWidth()
Returns ifusePointStyle
is true, the width of the point style used for the legend.TextAlign
getTextAlign()
Returns the horizontal alignment of the label text.boolean
isUseBorderRadius()
Returns if label border radius will match corresponding border radius.boolean
isUsePointStyle()
Returns if label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultBoxHandler
getBoxHeight, getBoxWidth
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultFontContainer
getColorAsString, getFont
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPointStyleHandler
getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleType
-
-
-
-
Method Detail
-
isUsePointStyle
boolean isUsePointStyle()
Returns if label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).- Returns:
- if label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
-
getPointStyleWidth
double getPointStyleWidth()
Returns ifusePointStyle
is true, the width of the point style used for the legend.- Returns:
- if
usePointStyle
is true, the width of the point style used for the legend.
-
getPadding
int getPadding()
Returns the padding to apply around labels. Only top and bottom are implemented.- Returns:
- Padding to apply around labels. Only top and bottom are implemented.
-
getTextAlign
TextAlign getTextAlign()
Returns the horizontal alignment of the label text.- Returns:
- the horizontal alignment of the label text.
-
isUseBorderRadius
boolean isUseBorderRadius()
Returns if label border radius will match corresponding border radius.- Returns:
- if label border radius will match corresponding border radius.
-
getBorderRadius
int getBorderRadius()
Returns the the border radius to use on the legend.- Returns:
- the the border radius to use on the legend
-
-