Class: xrx.shape.Circle

xrx.shape. Circle

new xrx.shape.Circle(drawing)

A class representing an engine-independent hoverable, selectable, modifiable and creatable circle shape.
Parameters:
Name Type Description
drawing xrx.drawing.Drawing The parent drawing canvas.
Source:

Extends

Members

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

The engine element.
Type:
Source:

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

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

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

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

Methods

xrx.shape.Circle#disposeInternal()

Disposes this circle shape.
Source:

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

Draws this circle shape.
Source:

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

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

(private) xrx.shape.Circle#getCoords() → {Array.<Array.<number>>}

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

xrx.shape.Circle#getCreatable() → {xrx.shape.CircleCreatable}

Returns a helper shape that makes this shape creatable.
Source:
Returns:
The creatable circle shape.
Type
xrx.shape.CircleCreatable

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

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

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

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

xrx.shape.Circle#getHoverable() → {xrx.shape.CircleHoverable}

Returns a helper shape that makes this shape hoverable.
Source:
Returns:
The hoverable circle shape.
Type
xrx.shape.CircleHoverable

xrx.shape.Circle#getModifiable() → {xrx.shape.CircleModifiable}

Returns a helper shape that makes this shape modifiable.
Source:
Returns:
The modifiable circle shape.
Type
xrx.shape.CircleModifiable

xrx.shape.Circle#getRadius() → {number}

Returns the radius of this circle.
Source:
Returns:
The radius.
Type
number

xrx.shape.Circle#getSelectable() → {xrx.shape.CircleSelectable}

Returns a helper shape that makes this shape selectable.
Source:
Returns:
The selectable circle shape.
Type
xrx.shape.CircleSelectable

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

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

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

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

xrx.shape.Circle#setCenter(cx, cy)

Sets the center point of this circle.
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.Circle#setCoords(coords)

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

(private) xrx.shape.Circle#setCoordX(coords)

Sets the x coordinate of this circle. We assume the center point.
Parameters:
Name Type Description
coords number The x coordinate.
Source:

(private) xrx.shape.Circle#setCoordY(coords)

Sets the y coordinate of this circle. We assume the center point.
Parameters:
Name Type Description
coords number The y coordinate.
Source:

xrx.shape.Circle#setFillColor(color)

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

xrx.shape.Circle#setFillOpacity(factor)

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

xrx.shape.Circle#setRadius(r)

Sets the radius of this circle.
Parameters:
Name Type Description
r number The radius.
Source:

xrx.shape.Circle#setStrokeColor(color)

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

xrx.shape.Circle#setStrokeWidth(width)

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

xrx.shape.Circle#setStyle(style)

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