\src\Utils\Graphics2D\Shapes\Styles\BorderStyle.inc
\Utils\Graphics2D\Shapes\Styles\BorderStyle
Package: Default
Default value
Parameters
Parameters
Returns
Details
Parameters
Parameters
This class implements a style for borders.
Properties
\Utils\Graphics2D\Shapes\Styles\RGBColor
$color= 'null'
null
Details- Type
- \Utils\Graphics2D\Shapes\Styles\RGBColor
- Inherited_from
- \Utils\Graphics2D\Shapes\Styles\LineStyle::$color
Methods
__construct(
int $width
=
1, \Utils\Color\Color $color
=
null
)
:
void
This acts as the constructor of the class.
Name | Type | Description |
---|---|---|
$width | int | the width of the border in pixels |
$color | \Utils\Color\Color | the color of the border, or null for transparent color |
__get(
string $memberName
)
:
mixed
inherited
This method is a magic getter method for the class.
Inherited from: \Utils\Graphics2D\Shapes\Styles\LineStyle::__get()Name | Type | Description |
---|---|---|
$memberName | string | the name of the member to get |
Type | Description |
---|---|
mixed | the value of the member |
- Todo
- replace this with Trait in PHP 5.4
setColor(
\Utils\Color\Color $color
)
:
void
inherited
This method is a setter for the color of the line style.
Inherited from: \Utils\Graphics2D\Shapes\Styles\LineStyle::setColor()Name | Type | Description |
---|---|---|
$color | \Utils\Color\Color | the new color of the line style |
setWidth(
int $width
)
:
void
inherited
This method is a setter for the width of the line style.
Inherited from: \Utils\Graphics2D\Shapes\Styles\LineStyle::setWidth()Name | Type | Description |
---|---|---|
$width | int | the new width of the line style |