Class Index | File Index

Classes


Class Line

represents line connecting two points
Defined in: raphaeltools.src.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Line(raphael, point1, point2)
Line
Field Summary
Field Attributes Field Name and Description
 
array of copies of receiver
 
array of points of copies of receiver
 
obj
pointer to actual raphael object
 
first point of line
 
second point of line
 
Raphael instance
Method Summary
Method Attributes Method Name and Description
 
Set this.pathList to this.obj raphael object
 
copy(points)
Copy receiver
<static>  
Line.create(raphael, point1, point2)
Creates new Line object, for parameters meaning see Line
 
makeCopy(point1, point2)
Returns copy of receiver
 
Sets svg path of receiver
 
Update receiver (set this.pathList for given internal variables - x,y,angle.
Class Detail
Line(raphael, point1, point2)
Line
Parameters:
{Raphael} raphael
raphael instance
{Point} point1
1st Point2d
{Point} point2
2nd Point2d
Field Detail
{[Lines]} copies
array of copies of receiver

{[[Points]|[Points]]} copiesPoints
array of points of copies of receiver

{Raphael.el} obj
pointer to actual raphael object

{Point} point1
first point of line

{Point} point2
second point of line

{Raphael} raphael
Raphael instance
Method Detail
attrObjPath()
Set this.pathList to this.obj raphael object

copy(points)
Copy receiver
Parameters:
{[[Points]|[Points]]} points
points of to be copied lines

<static> {Line} Line.create(raphael, point1, point2)
Creates new Line object, for parameters meaning see Line
Parameters:
raphael
point1
point2
Returns:
{Line} new Line object

{Line} makeCopy(point1, point2)
Returns copy of receiver
Parameters:
point1
point2
Returns:
{Line} copy of receiver

setPathList()
Sets svg path of receiver

update()
Update receiver (set this.pathList for given internal variables - x,y,angle... - as well as its copies)

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