new xrx.shape.Line(drawing)
Classes representing an engine-independent line shape.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
- Source:
Extends
Members
-
(private) xrx.shape.Line#engineElement_ :xrx.canvas.Line|xrx.svg.Line|xrx.vml.Line
-
The engine element.
Type:
- Source:
-
(private) xrx.shape.Line#fill_ :Object
-
Object describing the fill style.
Type:
- Object
- Inherited From:
- Source:
-
(private) xrx.shape.Line#stroke_ :Object
-
Object describing the stroke style.
Type:
- Object
- Inherited From:
- Source:
Methods
-
xrx.shape.Line#disposeInternal()
-
Disposes this line shape.
- Source:
-
(private) xrx.shape.Line#draw()
-
Draws this line shape.
- Source:
-
xrx.shape.Line#getCoords() → {Array.<Array.<Number>>}
-
Returns the coordinates of this line.
- Source:
Returns:
The coordinates.- Type
- Array.<Array.<Number>>
-
xrx.shape.Line#getCreatable() → {xrx.shape.LineCreatable}
-
Returns a helper shape that makes this shape creatable.
- Source:
Returns:
The creatable line shape. -
xrx.shape.Line#getFillColor() → {string}
-
Returns the fill color of this shape.
- Inherited From:
- Source:
Returns:
The fill color.- Type
- string
-
xrx.shape.Line#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
- Inherited From:
- Source:
Returns:
The fill opacity.- Type
- number
-
xrx.shape.Line#getHoverable() → {xrx.shape.LineHoverable}
-
Returns a helper shape that makes this shape hoverable.
- Source:
Returns:
The hoverable line shape. -
xrx.shape.Line#getModifiable() → {xrx.shape.LineModifiable}
-
Returns a helper shape that makes this shape modifiable.
- Source:
Returns:
The modifiable line shape. -
xrx.shape.Line#getSelectable() → {xrx.shape.LineSelectable}
-
Returns a helper shape that makes this shape selectable.
- Source:
Returns:
The selectable line shape. -
xrx.shape.Line#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
- Inherited From:
- Source:
Returns:
The stroke color.- Type
- string
-
xrx.shape.Line#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
- Inherited From:
- Source:
Returns:
The stroke width.- Type
- number
-
xrx.shape.Line#getX1() → {number}
-
Returns the x coordinate of the line's start point.
- Source:
Returns:
The x coordinate of the line's start point.- Type
- number
-
xrx.shape.Line#getX2() → {number}
-
Returns the x coordinate of the line's end point.
- Source:
Returns:
The x coordinate of the line's end point.- Type
- number
-
xrx.shape.Line#getY1() → {number}
-
Returns the y coordinate of the line's start point.
- Source:
Returns:
The y coordinate of the line's start point.- Type
- number
-
xrx.shape.Line#getY2() → {number}
-
Returns the x coordinate of the line's end point.
- Source:
Returns:
The x coordinate of the line's end point.- Type
- number
-
xrx.shape.Line#setCoords(coords)
-
Sets the coordinates of this line.
Parameters:
Name Type Description coords
Array.<Array.<Number>> The coordinates. - Source:
-
xrx.shape.Line#setFillColor(color)
-
Sets the fill color of this shape.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.shape.Line#setFillOpacity(factor)
-
Sets the fill opacity of this shape.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.shape.Line#setStrokeColor(color)
-
Sets the stroke color of this shape.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.shape.Line#setStrokeWidth(width)
-
Sets the stroke width of this shape.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
xrx.shape.Line#setStyle(style)
-
Sets a stylable object for this shape.
Parameters:
Name Type Description style
xrx.shape.Style - Inherited From:
- Source:
-
xrx.shape.Line#setX1(x1)
-
Sets the x coordinate of the line's start point.
Parameters:
Name Type Description x1
number The x coordinate. - Source:
-
xrx.shape.Line#setX2(x2)
-
Sets the x coordinate of the line's end point.
Parameters:
Name Type Description x2
number The x coordinate. - Source:
-
xrx.shape.Line#setY1(y1)
-
Sets the y coordinate of the line's start point.
Parameters:
Name Type Description y1
number The y coordinate. - Source:
-
xrx.shape.Line#setY2(y2)
-
Sets the y coordinate of the line's end point.
Parameters:
Name Type Description y2
number The y coordinate. - Source: