(private) new xrx.canvas.Ellipse(element)
Canvas rendering class representing an ellipse.
Parameters:
Name | Type | Description |
---|---|---|
element |
xrx.canvas.Canvas | The parent canvas object. |
Extends
Members
-
xrx.canvas.Ellipse#canvas_ :xrx.canvas.Canvas
-
The parent canvas object.
Type:
- Inherited From:
- Source:
-
xrx.canvas.Ellipse#context_ :CanvasRenderingContext2D
-
The rendering context.
Type:
- CanvasRenderingContext2D
- Inherited From:
- Source:
Methods
-
(static) xrx.canvas.Ellipse.create(canvas)
-
Creates a new ellipse.
Parameters:
Name Type Description canvas
xrx.canvas.Canvas The parent canvas object. -
xrx.canvas.Ellipse#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.Ellipse#draw(cx, cy, rx, ry, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws this ellipse on the canvas.
Parameters:
Name Type Description cx
number X-coordinate of the circle's center point. cy
number Y-coordinate of the circle's center point. rx
number Major-radius of the ellipse. ry
number Minor-radius of the ellipse. fillColor
string The fill color. fillOpacity
number Opacity of the fill color. strokeColor
string The stroke color. strokeWidth
number The stroke width. -
xrx.canvas.Ellipse#getCanvas() → {xrx.canvas.Canvas}
-
Returns the parent canvas object.
- Inherited From:
- Source:
Returns:
The parent canvas object.- Type
- xrx.canvas.Canvas
-
xrx.canvas.Ellipse#getContext() → {CanvasRenderingContext2D}
-
Returns the HTML canvas rendering context.
- Inherited From:
- Source:
Returns:
The rendering context.- Type
- CanvasRenderingContext2D
-
(private) xrx.canvas.Ellipse#strokeAndFill_()
-
- Inherited From:
- Source: