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, setEventToModel
checkAndAddToParent, 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, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, 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, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAlign, setDisplay, setPosition
getAlign, getPosition, isDisplay
getColorAsString
getColor, getColorAsString, setColor
public final FontContainer getFontContainer()
HasFont
getFontContainer
in interface HasFont
public final Padding getPadding()
getPadding
in interface IsDefaultAbstractTitle
getPadding
in interface IsTitle
public void setColor(String color)
IsTitle
public IsFont getFont()
IsDefaultFontContainer
public final void setFullSize(boolean fullSize)
setFullSize
in interface IsTitle
fullSize
- Marks that this box should take the full width/height of the canvas (moving other boxes)public final boolean isFullSize()
isFullSize
in interface IsDefaultAbstractTitle
true
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 IsDefaultPluginElement
true
the element is shown.public void setPosition(Position position)
position
- the position of element.public Position getPosition()
getPosition
in interface IsDefaultPluginElement
public void setAlign(ElementAlign alignment)
alignment
- alignment of the element.public ElementAlign getAlign()
getAlign
in interface IsDefaultPluginElement