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()
IsDefaultFontContainer
getColorAsString
in interface IsDefaultFontContainer
public IsDefaultFont getFont()
IsDefaultFontContainer
getFont
in interface IsDefaultFontContainer
public boolean isUsePointStyle()
IsDefaultLegendLabels
isUsePointStyle
in interface IsDefaultLegendLabels
public PointStyle getPointStyle()
IsDefaultPointStyleHandler
getPointStyle
in interface IsDefaultPointStyleHandler
public int getBoxWidth()
IsDefaultBoxHandler
getBoxWidth
in interface IsDefaultBoxHandler
public int getBoxHeight()
IsDefaultBoxHandler
getBoxHeight
in interface IsDefaultBoxHandler
public int getPadding()
IsDefaultLegendLabels
getPadding
in interface IsDefaultLegendLabels
public PointStyleType getPointStyleType()
IsDefaultPointStyleHandler
getPointStyleType
in interface IsDefaultPointStyleHandler
public Canvas getPointStyleAsCanvas()
IsDefaultPointStyleHandler
null
.getPointStyleAsCanvas
in interface IsDefaultPointStyleHandler
null
.public Img getPointStyleAsImage()
IsDefaultPointStyleHandler
null
.getPointStyleAsImage
in interface IsDefaultPointStyleHandler
null
.public TextAlign getTextAlign()
IsDefaultLegendLabels
getTextAlign
in interface IsDefaultLegendLabels