public class CartesianScaleTitle extends Object
Modifier and Type | Method and Description |
---|---|
ScaleTitleAlign |
getAlign()
Returns the alignment of the axis title.
|
Axis |
getAxis()
Returns the axis instance.
|
IsColor |
getColor()
Returns the font color.
|
String |
getColorAsString()
Returns the font color as string.
|
Font |
getFont()
Returns the font element.
|
Padding |
getPadding()
Returns the padding element.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
boolean |
isDisplay()
If true, display the axis title.
|
void |
setAlign(ScaleTitleAlign align)
Sets the alignment of the axis title.
|
void |
setColor(IsColor color)
Sets the font color.
|
void |
setColor(String color)
Sets the font color.
|
void |
setDisplay(boolean display)
If true, display the axis title.
|
void |
setText(String... text)
Sets the title text to display.
If specified as an array, text is rendered on multiple lines. |
public Font getFont()
public void setColor(IsColor color)
color
- font color.public void setColor(String color)
color
- font color.public String getColorAsString()
public IsColor getColor()
public Padding getPadding()
public void setDisplay(boolean display)
display
- If true, display the axis title.public boolean isDisplay()
public void setText(String... text)
text
- the title text to display.public List<String> getText()
public void setAlign(ScaleTitleAlign align)
align
- the alignment of the axis titlepublic ScaleTitleAlign getAlign()
public final Axis getAxis()