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
getPadding()
Returns the padding to apply around labels.double
getPointStyleWidth()
Returns ifusePointStyle
is true, the width of the point style used for the legend (only forPointStyle.CIRCLE
,PointStyle.RECT
andPointStyle.LINE
).TextAlign
getTextAlign()
Returns the horizontal alignment of the label text.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 (only forPointStyle.CIRCLE
,PointStyle.RECT
andPointStyle.LINE
).- Returns:
- if
usePointStyle
is true, the width of the point style used for the legend (only forPointStyle.CIRCLE
,PointStyle.RECT
andPointStyle.LINE
).
-
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.
-
-