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. |
Extends
Methods
-
xrx.shape.Polygon#disposeInternal()
-
Disposes this polygon shape.
-
xrx.shape.Polygon#getCreatable() → {xrx.shape.PolygonCreatable}
-
Returns a helper shape that makes this shape creatable.
Returns:
The creatable polygon shape. -
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.
Returns:
The hoverable polygon shape. -
xrx.shape.Polygon#getModifiable() → {xrx.shape.PolygonModifiable}
-
Returns a helper shape that makes this shape modifiable.
Returns:
The modifiable polygon shape. -
xrx.shape.Polygon#getSelectable() → {xrx.shape.PolygonSelectable}
-
Returns a helper shape that makes this shape selectable.
Returns:
The selectable polygon shape. -
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: