Stroke
class Stroke extends JsonConfig (View source)
Stroke Object
An object that specifies a the color, thickness and opacity of borders in charts.
Constants
TYPE |
Type of JsonConfig object
|
Methods
Builds the Stroke object with specified 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.
Sets the opacity of the stroke.
Sets the width of the stroke.
Details
at line 53
__construct(
array $config = array())
Builds the Stroke object with specified 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
Stroke
stroke(
string $stroke)
Sets the color of the stroke.
at line 79
Stroke
strokeOpacity(
float $strokeOpacity)
Sets the opacity of the stroke.
at line 99
Stroke
strokeWidth(
int $strokeWidth)
Sets the width of the stroke.