Class Index | File Index

Classes


Class Circle

represents circle
Defined in: raphaeltools.src.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Circle(raphael, x, y, r)
Circle (for easier modifying)
Field Summary
Field Attributes Field Name and Description
 
array of copies of receiver
 
array of shifts of copies of receiver
 
obj
actual raphael object
 
r
radius of the circle
 
raphael instance
 
x
x coordinate of circle center
 
y
y coordinate of circle center
Method Summary
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
 
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
 
Translate along x axis of receiver
 
Translate along y axis of receiver
 
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 12 2012 09:22:03 GMT+0100 (CET)