Class: xrx.shape.Style

xrx.shape. Style

new xrx.shape.Style()

A class describing style information for shapes.
Source:

Members

(private) xrx.shape.Style#fill_ :Object

Object describing the fill style.
Type:
  • Object
Source:

(private) xrx.shape.Style#stroke_ :Object

Object describing the stroke style.
Type:
  • Object
Source:

Methods

xrx.shape.Style#disposeInternal()

Disposes this style information object.
Source:

xrx.shape.Style#getFillColor() → {string}

Returns the fill color of this shape.
Source:
Returns:
The fill color.
Type
string

xrx.shape.Style#getFillOpacity() → {number}

Returns the fill opacity of this shape.
Source:
Returns:
The fill opacity.
Type
number

xrx.shape.Style#getStrokeColor() → {string}

Returns the stroke color of this shape.
Source:
Returns:
The stroke color.
Type
string

xrx.shape.Style#getStrokeWidth() → {number}

Returns the stroke width of this shape.
Source:
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.
Source:

xrx.shape.Style#setFillOpacity(factor)

Sets the fill opacity of this shape.
Parameters:
Name Type Description
factor number The fill opacity.
Source:

xrx.shape.Style#setStrokeColor(color)

Sets the stroke color of this shape.
Parameters:
Name Type Description
color string The stroke color.
Source:

xrx.shape.Style#setStrokeWidth(width)

Sets the stroke width of this shape.
Parameters:
Name Type Description
width number The stroke width.
Source:

xrx.shape.Style#setStyle(style)

Sets a stylable object for this shape.
Parameters:
Name Type Description
style xrx.shape.Style
Source: