public interface IsTitle extends IsDefaultAbstractTitle
| Modifier and Type | Method and Description |
|---|---|
IsFont |
getFont()
Returns the font element.
|
Padding |
getPadding()
Returns the padding to apply around labels.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
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. |
isFullSizegetAlign, getPosition, isDisplaygetColorAsStringvoid setDisplay(boolean display)
true if the element is shown.display - if true the element is shown.void setPosition(Position position)
position - the position of element.void setAlign(ElementAlign alignment)
alignment - alignment of the element.void setFullSize(boolean fullSize)
fullSize - Marks that this box should take the full width/height of the canvas (moving other boxes)void setText(String... text)
text - the title text to display.List<String> getText()
void setColor(String color)
color - font color.IsFont getFont()
IsDefaultFontContainergetFont in interface IsDefaultFontContainerPadding getPadding()
IsDefaultAbstractTitlegetPadding in interface IsDefaultAbstractTitle