Class: xrx.canvas.Circle

xrx.canvas. Circle

(private) new xrx.canvas.Circle(element)

Canvas rendering class representing a circle.
Parameters:
Name Type Description
element xrx.canvas.Canvas The parent canvas object.
Source:

Extends

Members

xrx.canvas.Circle#canvas_ :xrx.canvas.Canvas

The parent canvas object.
Type:
Inherited From:
Source:

xrx.canvas.Circle#context_ :CanvasRenderingContext2D

The rendering context.
Type:
  • CanvasRenderingContext2D
Inherited From:
Source:

Methods

(static) xrx.canvas.Circle.create(canvas)

Creates a new circle.
Parameters:
Name Type Description
canvas xrx.canvas.Canvas The parent canvas object.
Source:

xrx.canvas.Circle#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.Circle#draw(cx, cy, r, fillColor, fillOpacity, strokeColor, strokeWidth)

Draws the circle 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.
r number Radius of the circle.
fillColor string The fill color.
fillOpacity number Opacity of the fill color.
strokeColor string The stroke color.
strokeWidth number The stroke width.
Source:

xrx.canvas.Circle#getCanvas() → {xrx.canvas.Canvas}

Returns the parent canvas object.
Inherited From:
Source:
Returns:
The parent canvas object.
Type
xrx.canvas.Canvas

xrx.canvas.Circle#getContext() → {CanvasRenderingContext2D}

Returns the HTML canvas rendering context.
Inherited From:
Source:
Returns:
The rendering context.
Type
CanvasRenderingContext2D

(private) xrx.canvas.Circle#strokeAndFill_()

Inherited From:
Source: