public final class Subtitle extends AbstractModel<Plugins,T> implements IsDefaultSubtitle
| 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.
|
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.
|
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, setValueAndAddToParent, setValueOrArrayAndAddToParent, 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, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPadding, isFullSizegetAlign, getPosition, isDisplaygetColorAsString, getFontsetAlign, setDisplay, setPositionpublic final org.pepstock.charba.client.options.FontContainer getFontContainer()
public final Padding getPadding()
getPadding in interface IsDefaultAbstractTitlegetPadding in interface IsTitlepublic void setColor(String color)
IsTitlepublic Font getFont()
IsDefaultFontContainergetFont in interface IsDefaultFontContainergetFont in interface IsTitlepublic final void setFullSize(boolean fullSize)
setFullSize in interface IsTitlefullSize - Marks that this box should take the full width/height of the canvas (moving other boxes)public final boolean isFullSize()
isFullSize in interface IsDefaultAbstractTitletrue if that this box should take the full width/height of the canvas (moving other boxes).public final void setText(String... text)
public final List<String> getText()
public void setColor(IsColor 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