(private) new xrx.vml.Line(The)
VML class representing a line.
Parameters:
Name | Type | Description |
---|---|---|
The |
HTMLElement | HTML element. |
Extends
Members
-
xrx.vml.Line#element_
-
- Inherited From:
- Source:
Methods
-
(static) xrx.vml.Line.create(canvas)
-
Creates a new line.
Parameters:
Name Type Description canvas
xrx.vml.Canvas The parent canvas object. -
xrx.vml.Line#draw(x1, y1, x2, y2, strokeColor, strokeWidth)
-
Draws this line.
Parameters:
Name Type Description x1
number The x coordinate of the start point. y1
number The y coordinate of the start point. x2
number The x coordinate of the end point. y2
number The y coordinate of the end point. strokeColor
string The stroke color. strokeWidth
number The stroke width. -
xrx.vml.Line#getElement() → {HTMLElement}
-
Returns the HTML element held by the Raphael object.
- Inherited From:
- Source:
Returns:
The HTML element.- Type
- HTMLElement
-
xrx.vml.Line#setCoords(coords)
-
Sets the coordinates for this line.
Parameters:
Name Type Description coords
Array.<number> The coordinates. -
xrx.vml.Line#setFillColor(color)
-
Sets the fill color of the stylable element.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.vml.Line#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.vml.Line#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.vml.Line#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
(private) xrx.vml.Line#strokeAndFill_()
-
- Inherited From:
- Source: