new xrx.shape.Polyline(drawing)
A class representing an engine-independent poly-line shape.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
Extends
Methods
-
xrx.shape.Polyline#disposeInternal()
-
Disposes this poly-line shape.
-
xrx.shape.Polyline#getCreatable() → {xrx.shape.PolylineCreatable}
-
Returns a helper shape that makes this shape creatable.
Returns:
The creatable poly-line shape. -
xrx.shape.Polyline#getFillColor() → {string}
-
Returns the fill color of this shape.
- Inherited From:
- Source:
Returns:
The fill color.- Type
- string
-
xrx.shape.Polyline#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
- Inherited From:
- Source:
Returns:
The fill opacity.- Type
- number
-
xrx.shape.Polyline#getHoverable() → {xrx.shape.PolylineHoverable}
-
Returns a helper shape that makes this shape hoverable.
Returns:
The hoverable poly-line shape. -
xrx.shape.Polyline#getModifiable() → {xrx.shape.PolylineModifiable}
-
Returns a helper shape that makes this shape modifiable.
Returns:
The modifiable poly-line shape. -
xrx.shape.Polyline#getSelectable() → {xrx.shape.PolylineSelectable}
-
Returns a helper shape that makes this shape selectable.
Returns:
The selectable poly-line shape. -
xrx.shape.Polyline#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
- Inherited From:
- Source:
Returns:
The stroke color.- Type
- string
-
xrx.shape.Polyline#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
- Inherited From:
- Source:
Returns:
The stroke width.- Type
- number
-
xrx.shape.Polyline#setFillColor(color)
-
Sets the fill color of this shape.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.shape.Polyline#setFillOpacity(factor)
-
Sets the fill opacity of this shape.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.shape.Polyline#setStrokeColor(color)
-
Sets the stroke color of this shape.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.shape.Polyline#setStrokeWidth(width)
-
Sets the stroke width of this shape.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
xrx.shape.Polyline#setStyle(style)
-
Sets a stylable object for this shape.
Parameters:
Name Type Description style
xrx.shape.Style - Inherited From:
- Source: