public final class LegendLabels extends AbstractModel<Legend,IsDefaultLegendLabels> implements IsDefaultLegendLabels
Modifier and Type | Method and Description |
---|---|
org.pepstock.charba.client.options.BoxHandler |
getBoxHandler()
Returns a box handler instance to use in the default methods of this interface.
|
default int |
getBoxHeight()
Returns the height of colored box.
|
default int |
getBoxWidth()
Returns the width of colored box.
|
default IsColor |
getColor()
Returns the font color.
|
default String |
getColorAsString()
Returns the font color as string.
|
default Font |
getFont()
Returns the font element.
|
org.pepstock.charba.client.options.FontContainer |
getFontContainer()
Returns a font container instance to use in the default methods of this interface.
|
int |
getPadding()
Returns the padding to apply around labels.
|
default PointStyle |
getPointStyle()
Returns the style of the point.
|
default Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null . |
default Img |
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returns null . |
org.pepstock.charba.client.options.PointStyleHandler |
getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.
|
default 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 font size, boxWidth is not used in this case).
|
default void |
setBoxHeight(int boxHeight)
Sets the height of colored box.
|
default void |
setBoxWidth(int boxWidth)
Sets the width of colored box.
|
default void |
setColor(IsColor color)
Sets the font color.
|
default void |
setColor(String color)
Sets the font color.
|
void |
setPadding(int padding)
Sets the padding to apply around labels.
|
default void |
setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
default void |
setPointStyle(Img pointStyle)
Sets the style of the point as image.
|
default void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
void |
setTextAlign(TextAlign align)
Sets the horizontal alignment of the label text.
|
void |
setUsePointStyle(boolean usePointStyle)
Sets if label style will match corresponding point style (size is based on font size, boxWidth is not used in this case).
|
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public org.pepstock.charba.client.options.BoxHandler getBoxHandler()
public org.pepstock.charba.client.options.PointStyleHandler getPointStyleHandler()
public org.pepstock.charba.client.options.FontContainer getFontContainer()
public void setUsePointStyle(boolean usePointStyle)
usePointStyle
- if label style will match corresponding point style (size is based on font size, boxWidth is not used in this case).public boolean isUsePointStyle()
isUsePointStyle
in interface IsDefaultLegendLabels
true
if label style will match corresponding point style (size is based on font size, boxWidth is not used in this case).public void setPadding(int padding)
padding
- padding to apply around labels. Only top and bottom are implemented.public int getPadding()
getPadding
in interface IsDefaultLegendLabels
public void setTextAlign(TextAlign align)
align
- the horizontal alignment of the label text.public TextAlign getTextAlign()
getTextAlign
in interface IsDefaultLegendLabels
public void setBoxWidth(int boxWidth)
boxWidth
- width of colored box.public int getBoxWidth()
getBoxWidth
in interface IsDefaultBoxHandler
public void setBoxHeight(int boxHeight)
boxHeight
- width of colored box.public int getBoxHeight()
getBoxHeight
in interface IsDefaultBoxHandler
public void setPointStyle(PointStyle pointStyle)
pointStyle
- array of the style of the point.public PointStyle getPointStyle()
getPointStyle
in interface IsDefaultPointStyleHandler
null
if point style is set as imagepublic void setPointStyle(Img pointStyle)
pointStyle
- image element of the style of the point as image.public PointStyleType getPointStyleType()
getPointStyleType
in interface IsDefaultPointStyleHandler
public Img getPointStyleAsImage()
null
.getPointStyleAsImage
in interface IsDefaultPointStyleHandler
null
.public void setPointStyle(Canvas pointStyle)
pointStyle
- canvas element of the style of the point as canvas.public Canvas getPointStyleAsCanvas()
null
.getPointStyleAsCanvas
in interface IsDefaultPointStyleHandler
null
.public Font getFont()
getFont
in interface IsDefaultFontContainer
public void setColor(IsColor color)
color
- font color.public void setColor(String color)
color
- font color.public String getColorAsString()
getColorAsString
in interface IsDefaultFontContainer
public IsColor getColor()