public class Title extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getFontColor()
Returns the font color for title
|
String |
getFontColorAsString()
Returns the font color for title
|
String |
getFontFamily()
Returns the font family for title, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size for title.
|
FontStyle |
getFontStyle()
Returns the font style for title, 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 title.
|
Position |
getPosition()
Returns the position of title.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
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 |
setFontColor(IsColor fontColor)
Sets the font color for title
|
void |
setFontColor(String fontColor)
Sets the font color for title
|
void |
setFontFamily(String fontFamily)
Sets the font family for title, follows CSS font-family options.
|
void |
setFontSize(int fontSize)
Sets the font size for title.
|
void |
setFontStyle(FontStyle fontStyle)
Sets the font style for title, follows CSS font-style options (i.e.
|
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 title.
|
void |
setPosition(Position position)
Sets the position of title.
|
void |
setText(String... text)
Sets the title text to display.
|
public void setFontSize(int fontSize)
fontSize
- Font size for title.public int getFontSize()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style for title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public FontStyle getFontStyle()
public void setFontColor(IsColor fontColor)
fontColor
- Font color for titlepublic void setFontColor(String fontColor)
fontColor
- Font color for titlepublic String getFontColorAsString()
public IsColor getFontColor()
public void setFontFamily(String fontFamily)
fontFamily
- Font family for title, follows CSS font-family options.public String getFontFamily()
public void setDisplay(boolean display)
display
- if the title is shown.public boolean isDisplay()
public void setText(String... text)
text
- the title text to display. If specified as an array, text is rendered on multiple lines.public List<String> getText()
public void setPosition(Position position)
position
- the position of title.public Position getPosition()
public void setPadding(int padding)
padding
- Padding to apply around title. 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()