new xrx.shape.Style()
A class describing style information for shapes.
Methods
-
xrx.shape.Style#disposeInternal()
-
Disposes this style information object.
-
xrx.shape.Style#getFillColor() → {string}
-
Returns the fill color of this shape.
Returns:
The fill color.- Type
- string
-
xrx.shape.Style#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
Returns:
The fill opacity.- Type
- number
-
xrx.shape.Style#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
Returns:
The stroke color.- Type
- string
-
xrx.shape.Style#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
Returns:
The stroke width.- Type
- number
-
xrx.shape.Style#setFillColor(color)
-
Sets the fill color of this shape.
Parameters:
Name Type Description color
string The fill color. -
xrx.shape.Style#setFillOpacity(factor)
-
Sets the fill opacity of this shape.
Parameters:
Name Type Description factor
number The fill opacity. -
xrx.shape.Style#setStrokeColor(color)
-
Sets the stroke color of this shape.
Parameters:
Name Type Description color
string The stroke color. -
xrx.shape.Style#setStrokeWidth(width)
-
Sets the stroke width of this shape.
Parameters:
Name Type Description width
number The stroke width. -
xrx.shape.Style#setStyle(style)
-
Sets a stylable object for this shape.
Parameters:
Name Type Description style
xrx.shape.Style