public final class ScaleTitle extends AbstractModel<AbstractScale,IsDefaultScaleTitle> implements IsDefaultScaleTitle
Modifier and Type | Method and Description |
---|---|
ScaleTitleAlign |
getAlign()
Returns the alignment of the axis title.
|
default IsColor |
getColor()
Returns the font color.
|
default String |
getColorAsString()
Returns the font color as string.
|
default Font |
getFont()
Returns the font element.
|
org.pepstock.charba.client.options.FontContainer |
getFontContainer()
Returns a font container instance to use in the default methods of this interface.
|
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.
|
default void |
setColor(IsColor color)
Sets the font color.
|
default 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. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public org.pepstock.charba.client.options.FontContainer getFontContainer()
public Padding getPadding()
getPadding
in interface IsDefaultScaleTitle
public void setDisplay(boolean display)
true
, display the axis title.display
- if true
, display the axis title.public boolean isDisplay()
true
, display the axis title.isDisplay
in interface IsDefaultScaleTitle
true
, display the axis title.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()
getAlign
in interface IsDefaultScaleTitle
public Font getFont()
getFont
in interface IsDefaultFontContainer
public void setColor(IsColor color)
color
- font color.public void setColor(String color)
color
- font color.public String getColorAsString()
getColorAsString
in interface IsDefaultFontContainer
public IsColor getColor()