public final class Title extends ChartContainer
| Modifier and Type | Method and Description |
|---|---|
IsColor |
getFontColor()
Returns the font color for title
|
java.lang.String |
getFontColorAsString()
Returns the font color for title
|
java.lang.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.
|
java.util.List<java.lang.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(java.lang.String fontColor)
Sets the font color for title
|
void |
setFontFamily(java.lang.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(java.lang.String... text)
Sets the title text to display.
|
getChartcheckAndGetDoubleValues, 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 void setFontSize(int fontSize)
fontSize - Font size for title.public int getFontSize()
Options.getTitle().public void setFontStyle(FontStyle fontStyle)
fontStyle - Font style for title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).FontStylepublic FontStyle getFontStyle()
Options.getTitle().FontStylepublic void setFontColor(IsColor fontColor)
fontColor - Font color for titlepublic void setFontColor(java.lang.String fontColor)
fontColor - Font color for titlepublic java.lang.String getFontColorAsString()
Options.getTitle().public IsColor getFontColor()
Options.getTitle().public void setFontFamily(java.lang.String fontFamily)
fontFamily - Font family for title, follows CSS font-family options.public java.lang.String getFontFamily()
Options.getTitle().public void setDisplay(boolean display)
display - if the title is shown.public boolean isDisplay()
Options.getTitle().public void setText(java.lang.String... text)
text - the title text to display. If specified as an array, text is rendered on multiple lines.public java.util.List<java.lang.String> getText()
public void setPosition(Position position)
position - the position of title.Positionpublic Position getPosition()
Options.getTitle().Positionpublic void setPadding(int padding)
padding - Padding to apply around title. Only top and bottom are implemented.public int getPadding()
Options.getTitle().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()
Options.getTitle().public void setLineHeight(double lineHeight)
lineHeight - height of an individual line of text.public double getLineHeight()
Options.getTitle().