Stroke
class Stroke extends ConfigObject (View source)
Properties
string | $stroke | Color to assign the stroke. | |
float | $strokeOpacity | Opacity of the stroke. | |
int | $strokeWidth | Width of the stroke, in pixels. |
Methods
mixed
__construct(
array $config = array())
Builds the Stroke object with specified options
array
toArray(
string $keyName = null)
Returns an array representation of the object.
from
ConfigObject
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
from
ConfigObject
strokeOpacity($so)
Sets the opacity of the stroke.
strokeWidth(
int $sw)
Sets the width of the stroke.
Details
at line 53
mixed
__construct(
array $config = array())
Builds the Stroke object with specified options
in
ConfigObject at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 65
Stroke
stroke($s)
Sets the color of the stroke.
at line 86
Stroke
strokeOpacity($so)
Sets the opacity of the stroke.
at line 107
Stroke
strokeWidth(
int $sw)
Sets the width of the stroke.