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.

array
getValues()

Same as toArray, but without the class name as a key to being multi-dimension.

stroke($s)

Sets the color of the stroke.

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

Parameters

array $config Array of options.

Return Value

mixed

Exceptions

InvalidConfigValue
InvalidConfigProperty

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.

Parameters

string $keyName Key name to be applied to generated array.

Return Value

array Assoc. array of the options of the object.

in ConfigObject at line 115
array getValues()

Same as toArray, but without the class name as a key to being multi-dimension.

Return Value

array Array of the options of the object.

at line 65
Stroke stroke($s)

Sets the color of the stroke.

Parameters

$s

Return Value

Stroke

Exceptions

InvalidConfigValue

at line 86
Stroke strokeOpacity($so)

Sets the opacity of the stroke.

Parameters

$so

Return Value

Stroke

Exceptions

InvalidConfigValue

at line 107
Stroke strokeWidth( int $sw)

Sets the width of the stroke.

Parameters

int $sw

Return Value

Stroke

Exceptions

InvalidConfigValue