Class: xrx.svg.Ellipse

xrx.svg. Ellipse

(private) new xrx.svg.Ellipse(element)

SVG rendering class representing an ellipse.
Parameters:
Name Type Description
element SVGEllipseElement The SVG ellipse element.
Source:

Extends

Members

xrx.svg.Ellipse#element_ :SVGElement

The SVG element.
Type:
  • SVGElement
Inherited From:
Source:

Methods

(static) xrx.svg.Ellipse.create()

Creates a new circle.
Source:

xrx.svg.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 ellipse's center point.
cy number Y-coordinate of the ellipse'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.
Source:

xrx.svg.Ellipse#getElement() → {SVGElement}

Returns the SVG element.
Inherited From:
Source:
Returns:
The SVG element.
Type
SVGElement

xrx.svg.Ellipse#setCenter(cx, cy)

Sets the center point of this ellipse.
Parameters:
Name Type Description
cx number The X coordinate of the center point.
cy number The Y coordinate of the center point.
Source:

xrx.svg.Ellipse#setFillColor(color)

Sets the fill color of the stylable element.
Parameters:
Name Type Description
color string The fill color.
Inherited From:
Source:

xrx.svg.Ellipse#setFillOpacity(factor)

Sets the fill opacity of the stylable element.
Parameters:
Name Type Description
factor number The fill opacity.
Inherited From:
Source:

xrx.svg.Ellipse#setRadiusX(rx)

Sets the ellipse's major-axis radius.
Parameters:
Name Type Description
rx number The major-axis radius.
Source:

xrx.svg.Ellipse#setRadiusY(ry)

Sets the ellipse's minor-axis radius.
Parameters:
Name Type Description
ry number The minor-axis radius.
Source:

xrx.svg.Ellipse#setStrokeColor(color)

Sets the stroke color of the stylable element.
Parameters:
Name Type Description
color string The stroke color.
Inherited From:
Source:

xrx.svg.Ellipse#setStrokeWidth(width)

Sets the stroke width of the stylable element.
Parameters:
Name Type Description
width number The stroke width.
Inherited From:
Source:

(private) xrx.svg.Ellipse#strokeAndFill_()

Inherited From:
Source: