Class Circle
represents circle
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Circle(raphael, x, y, r)
Circle (for easier modifying)
|
Field Attributes | Field Name and Description |
---|---|
array of copies of receiver
|
|
array of shifts of copies of receiver
|
|
actual raphael object
|
|
radius of the circle
|
|
raphael instance
|
|
x coordinate of circle center
|
|
y coordinate of circle center
|
Method Attributes | Method Name and Description |
---|---|
copy(shifts)
Copy of receiver
|
|
<static> |
Circle.create(raphael, x, y, r)
Creates new Circle object, for parameters meaning see Circle
|
makeCopy()
Returns copy of receiver
|
|
setR(r)
Sets radius of receiver
|
|
setX(x)
Sets x coordinate of receiver
|
|
setXY(x, y)
Sets new coordinates of receiver
|
|
setY(y)
Sets y coordinate of receiver
|
|
translate(dx, dy)
Translate receiver
|
|
translateX(dx)
Translate along x axis of receiver
|
|
translateY(dy)
Translate along y axis of receiver
|
|
update()
Update
|
Class Detail
Circle(raphael, x, y, r)
Circle (for easier modifying)
- Parameters:
- {Raphael} raphael
- raphael instance
- {float} x Optional, Default: 0.
- x coordinate of circle center
- {float} y Optional, Default: 0.
- y coordinate of circle center
- {float} r Optional, Default: 10.
- circle radius
Field Detail
{[Circles]}
copies
array of copies of receiver
{[[float|float]]}
copiesShifts
array of shifts of copies of receiver
{Raphael.circle}
obj
actual raphael object
{float}
r
radius of the circle
{Raphael}
raphael
raphael instance
{float}
x
x coordinate of circle center
{float}
y
y coordinate of circle center
Method Detail
copy(shifts)
Copy of receiver
- Parameters:
- {[[float|float]]} shifts
- shifts of copies
<static>
{Circle}
Circle.create(raphael, x, y, r)
Creates new Circle object, for parameters meaning see Circle
- Parameters:
- raphael
- x
- y
- r
- Returns:
- {Circle} new Circle object
{Circle}
makeCopy()
Returns copy of receiver
- Returns:
- {Circle} copy of receiver
setR(r)
Sets radius of receiver
- Parameters:
- {float} r
- new radius
setX(x)
Sets x coordinate of receiver
- Parameters:
- {float} x
- new x coordinate
setXY(x, y)
Sets new coordinates of receiver
- Parameters:
- {float} x
- new x coordinate
- {float} y
- new y coordinate
setY(y)
Sets y coordinate of receiver
- Parameters:
- {float} y
- new y coordinate
translate(dx, dy)
Translate receiver
- Parameters:
- {float} dx
- x distance of translation
- {float} dy
- y distance of translation
translateX(dx)
Translate along x axis of receiver
- Parameters:
- {float} dx
- x distance of translation
translateY(dy)
Translate along y axis of receiver
- Parameters:
- {float} dy
- y distance of translation
update()
Update