public final class LegendLabels extends AbstractModel<Legend,IsDefaultLegendLabels> implements IsDefaultLegendLabels, HasFont
| 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.
|
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.
|
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, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, 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, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getElement, 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, setElement, 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, typepublic org.pepstock.charba.client.options.BoxHandler getBoxHandler()
public org.pepstock.charba.client.options.PointStyleHandler getPointStyleHandler()
public FontContainer getFontContainer()
HasFontgetFontContainer in interface HasFontpublic 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 IsDefaultLegendLabelstrue 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 IsDefaultLegendLabelspublic void setTextAlign(TextAlign align)
align - the horizontal alignment of the label text.public TextAlign getTextAlign()
getTextAlign in interface IsDefaultLegendLabelspublic void setBoxWidth(int boxWidth)
boxWidth - width of colored box.public int getBoxWidth()
getBoxWidth in interface IsDefaultBoxHandlerpublic void setBoxHeight(int boxHeight)
boxHeight - width of colored box.public int getBoxHeight()
getBoxHeight in interface IsDefaultBoxHandlerpublic void setPointStyle(PointStyle pointStyle)
pointStyle - array of the style of the point.public PointStyle getPointStyle()
getPointStyle in interface IsDefaultPointStyleHandlernull 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 IsDefaultPointStyleHandlerpublic Img getPointStyleAsImage()
null.getPointStyleAsImage in interface IsDefaultPointStyleHandlernull.public void setPointStyle(Canvas pointStyle)
pointStyle - canvas element of the style of the point as canvas.public Canvas getPointStyleAsCanvas()
null.getPointStyleAsCanvas in interface IsDefaultPointStyleHandlernull.