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 intgetBorderRadius()Returns the the border radius to use on the legend.intgetPadding()Returns the padding to apply around labels.doublegetPointStyleWidth()Returns ifusePointStyleis true, the width of the point style used for the legend.TextAligngetTextAlign()Returns the horizontal alignment of the label text.booleanisUseBorderRadius()Returns if label border radius will match corresponding border radius.booleanisUsePointStyle()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 ifusePointStyleis true, the width of the point style used for the legend.- Returns:
- if
usePointStyleis 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
-
-