Class: xrx.shape.Polygon

xrx.shape. Polygon

new xrx.shape.Polygon(drawing)

A class representing an engine-independent polygon shape.
Parameters:
Name Type Description
drawing xrx.drawing.Drawing The parent drawing canvas.
Source:

Extends

Methods

xrx.shape.Polygon#disposeInternal()

Disposes this polygon shape.
Source:

xrx.shape.Polygon#getCreatable() → {xrx.shape.PolygonCreatable}

Returns a helper shape that makes this shape creatable.
Source:
Returns:
The creatable polygon shape.
Type
xrx.shape.PolygonCreatable

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

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

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

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

xrx.shape.Polygon#getHoverable() → {xrx.shape.PolygonHoverable}

Returns a helper shape that makes this shape hoverable.
Source:
Returns:
The hoverable polygon shape.
Type
xrx.shape.PolygonHoverable

xrx.shape.Polygon#getModifiable() → {xrx.shape.PolygonModifiable}

Returns a helper shape that makes this shape modifiable.
Source:
Returns:
The modifiable polygon shape.
Type
xrx.shape.PolygonModifiable

xrx.shape.Polygon#getSelectable() → {xrx.shape.PolygonSelectable}

Returns a helper shape that makes this shape selectable.
Source:
Returns:
The selectable polygon shape.
Type
xrx.shape.PolygonSelectable

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

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

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

Returns the stroke width of this shape.
Inherited From:
Source:
Returns:
The stroke width.
Type
number

xrx.shape.Polygon#setFillColor(color)

Sets the fill color of this shape.
Parameters:
Name Type Description
color string The fill color.
Inherited From:
Source:

xrx.shape.Polygon#setFillOpacity(factor)

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

xrx.shape.Polygon#setStrokeColor(color)

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

xrx.shape.Polygon#setStrokeWidth(width)

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

xrx.shape.Polygon#setStyle(style)

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