TextStyle
class TextStyle extends JsonConfig (View source)
Text Style ConfigObject
An object containing all the values for the textStyle which can be passed into the chart's options.
Constants
TYPE |
Type of JsonConfig object
|
Methods
Builds the TextStyle object when passed an array of configuration options.
Shortcut method to set the value of an option and return $this.
Parses the config array by passing the values through each method to check validity against if the option exists.
Details
at line 53
__construct(
array $config = array())
Builds the TextStyle object when passed an array of configuration options.
in
JsonConfig at line 64
mixed
__get(
string $option)
Get the value of a set option via magic method.
in
JsonConfig at line 75
Options
getOptions()
Gets the Options object for the JsonConfig
in
JsonConfig at line 90
JsonConfig
setOption(
string $option,
mixed $value)
Shortcut method to set the value of an option and return $this.
In order to maintain backwards compatibility, ConfigObjects will be unwrapped.
in
JsonConfig at line 106
setOptions(
array $config)
Parses the config array by passing the values through each method to check validity against if the option exists.
in
JsonConfig at line 275
array
jsonSerialize()
Custom serialization of the JsonConfig object.
at line 67
TextStyle
bold(
bool $bold)
Set bold on/off for the text element.
at line 81
TextStyle
color(
string $color)
Set the color for the text element.
valid HTML color string, for example: 'red' OR '#004411'
at line 95
TextStyle
fontName(
string $fontName)
Sets the font to the textStyle object.
Must be a valid font name.
at line 107
TextStyle
fontSize(
integer $fontSize)
Sets the font size to the textStyle.
at line 119
TextStyle
italic(
boolean $italic)
Set italic on/off for the text element.