T - type of defaults for title or subtitlepublic abstract class AbstractTitle<T extends IsDefaultAbstractTitle> extends AbstractModel<Plugins,T> implements IsTitle, HasFont
| Modifier and Type | Method and Description |
|---|---|
ElementAlign |
getAlign()
Returns the alignment of the element.
|
IsFont |
getFont()
Returns the font element.
|
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.
|
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, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAlign, setDisplay, setPositiongetAlign, getPosition, isDisplaygetColorAsStringgetColor, getColorAsString, setColorpublic final FontContainer getFontContainer()
HasFontgetFontContainer in interface HasFontpublic final Padding getPadding()
getPadding in interface IsDefaultAbstractTitlegetPadding in interface IsTitlepublic void setColor(String color)
IsTitlepublic IsFont getFont()
IsDefaultFontContainerpublic 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 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