public final class Title extends FontItem<Options,IsDefaultTitle> implements IsDefaultTitle
| Modifier and Type | Method and Description |
|---|---|
double |
getLineHeight()
Returns the height of an individual line of text.
|
int |
getPadding()
Returns the padding to apply around labels.
|
Position |
getPosition()
Returns the position of title.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
boolean |
isDisplay()
Returns
true if the title is shown. |
boolean |
isFullWidth()
Returns
true if marks that this box should take the full width of the canvas (pushing down other boxes) |
void |
setDisplay(boolean display)
Sets
true if the title is shown. |
void |
setFullWidth(boolean fullWidth)
If
true, marks that this box should take the full width of the canvas (pushing down other boxes). |
void |
setLineHeight(double lineHeight)
Sets the height of an individual line of text.
|
void |
setPadding(int padding)
Sets the padding to apply around labels.
|
void |
setPosition(Position position)
Sets the position of title.
|
void |
setText(String... text)
Sets the title text to display.
|
getFontColor, getFontColorAsString, getFontFamily, getFontSize, getFontStyle, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStylecheckAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModelgetArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFontColorAsString, getFontFamily, getFontSize, getFontStylepublic 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 IsDefaultTitletrue the title is shown.public void setPosition(Position position)
position - the position of title.public Position getPosition()
getPosition in interface IsDefaultTitlepublic void setPadding(int padding)
padding - padding to apply around labels. Only top and bottom are implemented.public int getPadding()
getPadding in interface IsDefaultTitlepublic void setFullWidth(boolean fullWidth)
true, marks that this box should take the full width of the canvas (pushing down other boxes).fullWidth - if true, marks that this box should take the full width of the canvas (pushing down other
boxes)public boolean isFullWidth()
true if marks that this box should take the full width of the canvas (pushing down other boxes)isFullWidth in interface IsDefaultTitletrue if marks that this box should take the full width of the canvas (pushing down other boxes).public void setLineHeight(double lineHeight)
lineHeight - height of an individual line of text.public double getLineHeight()
getLineHeight in interface IsDefaultTitlepublic void setText(String... text)
text - the title text to display. If specified as an array, text is rendered on multiple lines.