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. |
Extends
Members
-
(private) xrx.shape.Ellipse#engineElement_ :xrx.canvas.Ellipse|xrx.svg.Ellipse|xrx.vml.Ellipse
-
The engine element.
Type:
-
(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.
-
(private) xrx.shape.Ellipse#draw()
-
Draws this ellipse.
-
xrx.shape.Ellipse#getCenter() → {Array.<number>}
-
Returns the center point of this ellipse.
Returns:
- Type
- Array.<number>
-
(private) xrx.shape.Ellipse#getCoords() → {Array.<Array.<Number>>}
-
Returns the coordinates of this ellipse. We assume the center point.
Returns:
The coordinates.- Type
- Array.<Array.<Number>>
-
xrx.shape.Ellipse#getCreatable() → {xrx.shape.EllipseCreatable}
-
Returns a helper shape that makes this shape creatable.
Returns:
The creatable ellipse shape. -
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.
Returns:
The hoverable ellipse shape. -
xrx.shape.Ellipse#getModifiable() → {xrx.shape.EllipseModifiable}
-
Returns a helper shape that makes this shape modifiable.
Returns:
The modifiable ellipse shape. -
xrx.shape.Ellipse#getRadiusX() → {number}
-
Returns the major-radius of this ellipse.
Returns:
The radius.- Type
- number
-
xrx.shape.Ellipse#getRadiusY() → {number}
-
Returns the minor-radius of this ellipse.
Returns:
The radius.- Type
- number
-
xrx.shape.Ellipse#getSelectable() → {xrx.shape.EllipseSelectable}
-
Returns a helper shape that makes this shape selectable.
Returns:
The selectable ellipse shape. -
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. -
(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. -
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. -
xrx.shape.Ellipse#setRadiusY(ry)
-
Sets the minor-radius of this ellipse.
Parameters:
Name Type Description ry
number The radius. -
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: