public final class Title extends AbstractModel<Plugins,T> implements IsDefaultTitle
| Modifier and Type | Method and Description |
|---|---|
ElementAlign |
getAlign()
Returns the alignment of the element.
|
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.
|
Padding |
getPadding()
Returns the padding to apply around labels.
|
Position |
getPosition()
Returns the position of element.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
boolean |
isDisplay()
Returns
true if the element is shown. |
boolean |
isFullSize()
Returns if that this box should take the full width/height of the canvas (moving other boxes).
|
void |
setAlign(ElementAlign alignment)
Sets the alignment of the element.
|
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 element is shown. |
void |
setFullSize(boolean fullSize)
Marks that this box should take the full width/height of the canvas (moving other boxes).
|
void |
setPosition(Position position)
Sets the position of element.
|
void |
setText(String... text)
Sets the title text to display.
If specified as an array, text is rendered on multiple lines. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, 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, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlign, getPosition, isDisplaypublic org.pepstock.charba.client.options.FontContainer getFontContainer()
public Padding getPadding()
getPadding in interface IsDefaultTitlepublic void setFullSize(boolean fullSize)
fullSize - Marks that this box should take the full width/height of the canvas (moving other boxes)public boolean isFullSize()
isFullSize in interface IsDefaultTitletrue if that this box should take the full width/height of the canvas (moving other boxes).public void setText(String... text)
text - the title text to display.public List<String> getText()
public Font getFont()
getFont in interface IsDefaultFontContainerpublic void setColor(IsColor color)
color - font color.public void setColor(String color)
color - font color.public String getColorAsString()
getColorAsString in interface IsDefaultFontContainerpublic IsColor getColor()
public void setDisplay(boolean display)
true if the element is shown.display - if true the element is shown.public boolean isDisplay()
true if the element is shown.isDisplay in interface IsDefaultPluginElementtrue the element is shown.public void setPosition(Position position)
position - the position of element.public Position getPosition()
getPosition in interface IsDefaultPluginElementpublic void setAlign(ElementAlign alignment)
alignment - alignment of the element.public ElementAlign getAlign()
getAlign in interface IsDefaultPluginElement