public final class Title extends FontItem
| Modifier and Type | Method and Description |
|---|---|
FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
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.
|
boolean |
isDisplay()
Returns if the title is shown.
|
boolean |
isFullWidth()
Returns if marks that this box should take the full width of the canvas (pushing down other boxes)
|
void |
setDisplay(boolean display)
Sets if the title is shown.
|
void |
setFullWidth(boolean fullWidth)
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.
|
getFontColor, getFontColorAsString, getFontFamily, getFontSize, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStylecheckAndAddToParent, hasPropertycheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic FontStyle getFontStyle()
FontItemgetFontStyle in class FontItemOptions.getDefaultFontStyle().FontStylepublic void setDisplay(boolean display)
display - if the title is shown.public boolean isDisplay()
public void setPosition(Position position)
position - the position of title.Positionpublic Position getPosition()
Position.top.Positionpublic void setPadding(int padding)
padding - Padding to apply around labels. Only top and bottom are implemented.public int getPadding()
public void setFullWidth(boolean fullWidth)
fullWidth - Marks that this box should take the full width of the canvas (pushing down other boxes)public boolean isFullWidth()
public void setLineHeight(double lineHeight)
lineHeight - Height of an individual line of text.public double getLineHeight()