(private) new xrx.canvas.Line(canvas)
Canvas class representing a line.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
xrx.canvas.Canvas | The parent canvas object. |
Extends
Members
-
xrx.canvas.Line#canvas_ :xrx.canvas.Canvas
-
The parent canvas object.
Type:
- Inherited From:
- Source:
-
xrx.canvas.Line#context_ :CanvasRenderingContext2D
-
The rendering context.
Type:
- CanvasRenderingContext2D
- Inherited From:
- Source:
Methods
-
(static) xrx.canvas.Line.create(canvas)
-
Creates a new line.
Parameters:
Name Type Description canvas
xrx.canvas.Canvas The parent canvas object. -
xrx.canvas.Line#applyTransform(matrix)
-
Applies a transformation matrix on this element.
Parameters:
Name Type Description matrix
goog.math.AffineTransform The transformation matrix. - Inherited From:
- Source:
-
xrx.canvas.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. -
(private) xrx.canvas.Line#drawPath_()
-
xrx.canvas.Line#getCanvas() → {xrx.canvas.Canvas}
-
Returns the parent canvas object.
- Inherited From:
- Source:
Returns:
The parent canvas object.- Type
- xrx.canvas.Canvas
-
xrx.canvas.Line#getContext() → {CanvasRenderingContext2D}
-
Returns the HTML canvas rendering context.
- Inherited From:
- Source:
Returns:
The rendering context.- Type
- CanvasRenderingContext2D
-
(private) xrx.canvas.Line#strokeAndFill_()
-
- Inherited From:
- Source: