Class: xrx.shape.Ellipse

xrx.shape. Ellipse

new xrx.shape.Ellipse(drawing)

A class representing an engine-independent ellipse shape.
Parameters:
Name Type Description
drawing xrx.drawing.Drawing The parent drawing canvas.
Source:

Extends

Members

(private) xrx.shape.Ellipse#engineElement_ :xrx.canvas.Ellipse|xrx.svg.Ellipse|xrx.vml.Ellipse

The engine element.
Type:
Source:

(private) xrx.shape.Ellipse#fill_ :Object

Object describing the fill style.
Type:
  • Object
Inherited From:
Source:

(private) xrx.shape.Ellipse#stroke_ :Object

Object describing the stroke style.
Type:
  • Object
Inherited From:
Source:

Methods

xrx.shape.Ellipse#disposeInternal()

Disposes this ellipse shape.
Source:

(private) xrx.shape.Ellipse#draw()

Draws this ellipse.
Source:

xrx.shape.Ellipse#getCenter() → {Array.<number>}

Returns the center point of this ellipse.
Source:
Returns:
Type
Array.<number>

(private) xrx.shape.Ellipse#getCoords() → {Array.<Array.<Number>>}

Returns the coordinates of this ellipse. We assume the center point.
Source:
Returns:
The coordinates.
Type
Array.<Array.<Number>>

xrx.shape.Ellipse#getCreatable() → {xrx.shape.EllipseCreatable}

Returns a helper shape that makes this shape creatable.
Source:
Returns:
The creatable ellipse shape.
Type
xrx.shape.EllipseCreatable

xrx.shape.Ellipse#getFillColor() → {string}

Returns the fill color of this shape.
Inherited From:
Source:
Returns:
The fill color.
Type
string

xrx.shape.Ellipse#getFillOpacity() → {number}

Returns the fill opacity of this shape.
Inherited From:
Source:
Returns:
The fill opacity.
Type
number

xrx.shape.Ellipse#getHoverable() → {xrx.shape.EllipseHoverable}

Returns a helper shape that makes this shape hoverable.
Source:
Returns:
The hoverable ellipse shape.
Type
xrx.shape.EllipseHoverable

xrx.shape.Ellipse#getModifiable() → {xrx.shape.EllipseModifiable}

Returns a helper shape that makes this shape modifiable.
Source:
Returns:
The modifiable ellipse shape.
Type
xrx.shape.EllipseModifiable

xrx.shape.Ellipse#getRadiusX() → {number}

Returns the major-radius of this ellipse.
Source:
Returns:
The radius.
Type
number

xrx.shape.Ellipse#getRadiusY() → {number}

Returns the minor-radius of this ellipse.
Source:
Returns:
The radius.
Type
number

xrx.shape.Ellipse#getSelectable() → {xrx.shape.EllipseSelectable}

Returns a helper shape that makes this shape selectable.
Source:
Returns:
The selectable ellipse shape.
Type
xrx.shape.EllipseSelectable

xrx.shape.Ellipse#getStrokeColor() → {string}

Returns the stroke color of this shape.
Inherited From:
Source:
Returns:
The stroke color.
Type
string

xrx.shape.Ellipse#getStrokeWidth() → {number}

Returns the stroke width of this shape.
Inherited From:
Source:
Returns:
The stroke width.
Type
number

xrx.shape.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:

(private) xrx.shape.Ellipse#setCoords(coords)

Sets the coordinates of this ellipse. We assume the center point.
Parameters:
Name Type Description
coords Array.<Array.<Number>> The coordinates.
Source:

xrx.shape.Ellipse#setFillColor(color)

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

xrx.shape.Ellipse#setFillOpacity(factor)

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

xrx.shape.Ellipse#setRadiusX(r)

Sets the major-radius of this ellipse.
Parameters:
Name Type Description
r number The radius.
Source:

xrx.shape.Ellipse#setRadiusY(ry)

Sets the minor-radius of this ellipse.
Parameters:
Name Type Description
ry number The radius.
Source:

xrx.shape.Ellipse#setStrokeColor(color)

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

xrx.shape.Ellipse#setStrokeWidth(width)

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

xrx.shape.Ellipse#setStyle(style)

Sets a stylable object for this shape.
Parameters:
Name Type Description
style xrx.shape.Style
Inherited From:
Source: