public final class DefaultChartLegendLabels extends Object implements IsDefaultLegendLabels
| Modifier and Type | Method and Description |
|---|---|
int |
getBoxHeight()
Returns the height of colored box.
|
int |
getBoxWidth()
Returns the width of colored box.
|
String |
getColorAsString()
Returns the font color as string.
|
IsDefaultFont |
getFont()
Returns the font element.
|
int |
getPadding()
Returns the padding to apply around labels.
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null. |
Img |
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returns null. |
PointStyleType |
getPointStyleType()
Returns the type of point style.
|
TextAlign |
getTextAlign()
Returns the 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).
|
public String getColorAsString()
IsDefaultFontContainergetColorAsString in interface IsDefaultFontContainerpublic IsDefaultFont getFont()
IsDefaultFontContainergetFont in interface IsDefaultFontContainerpublic boolean isUsePointStyle()
IsDefaultLegendLabelsisUsePointStyle in interface IsDefaultLegendLabelspublic PointStyle getPointStyle()
IsDefaultPointStyleHandlergetPointStyle in interface IsDefaultPointStyleHandlerpublic int getBoxWidth()
IsDefaultBoxHandlergetBoxWidth in interface IsDefaultBoxHandlerpublic int getBoxHeight()
IsDefaultBoxHandlergetBoxHeight in interface IsDefaultBoxHandlerpublic int getPadding()
IsDefaultLegendLabelsgetPadding in interface IsDefaultLegendLabelspublic PointStyleType getPointStyleType()
IsDefaultPointStyleHandlergetPointStyleType in interface IsDefaultPointStyleHandlerpublic Canvas getPointStyleAsCanvas()
IsDefaultPointStyleHandlernull.getPointStyleAsCanvas in interface IsDefaultPointStyleHandlernull.public Img getPointStyleAsImage()
IsDefaultPointStyleHandlernull.getPointStyleAsImage in interface IsDefaultPointStyleHandlernull.public TextAlign getTextAlign()
IsDefaultLegendLabelsgetTextAlign in interface IsDefaultLegendLabels