public final class LegendTitle extends AbstractModel<Legend,IsDefaultLegendTitle> implements IsDefaultLegendTitle, HasLegendText
Modifier and Type | Method and Description |
---|---|
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.
|
LegendTextHandler |
getLegendTextHandler()
Returns a legend text handler instance to use in the default methods of this interface.
|
Padding |
getPadding()
Returns the padding to apply around labels.
|
boolean |
isDisplay()
Returns
true if the title is shown. |
default void |
setColor(IsColor color)
Sets the font color.
|
default void |
setColor(String color)
Sets the font color.
|
void |
setDisplay(boolean display)
Sets
true if the title is shown. |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getText, getTextAsHtml, isHtmlText, setHtmlText, setText, setText
public org.pepstock.charba.client.options.FontContainer getFontContainer()
public LegendTextHandler getLegendTextHandler()
HasLegendText
getLegendTextHandler
in interface HasLegendText
public Padding getPadding()
getPadding
in interface IsDefaultLegendTitle
public void setDisplay(boolean display)
true
if the title is shown.display
- if true
the title is shown.public boolean isDisplay()
true
if the title is shown.isDisplay
in interface IsDefaultLegendTitle
true
the title is shown.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()