Class Index | File Index

Classes


Class Polyline


Defined in: primitives.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates an instance of a Polyline
Field Summary
Field Attributes Field Name and Description
 
Serialization type
 
An {Array} of Points
 
The starting Point.
 
The Style of the polyline
Method Summary
Method Attributes Method Name and Description
 
addPoint(point)
 
 
contains(x, y)
 
equals(anotherPolyline)
 
 
<static>  
Polyline.load(o)
Creates a {Polyline} out of JSON parsed object
 
near(x, y, radius)
 
paint(context)
 
 
Render the SVG fragment for this primitive
 
transform(matrix)
Class Detail
Polyline()
Creates an instance of a Polyline
Author: Alex Gheorghiu .
Field Detail
oType
Serialization type

points
An {Array} of Points

startPoint
The starting Point. Required for path, we could use getPoints(), but this existed first. Also its a lot simpler. Each other element used in path already has a startPoint

style
The Style of the polyline
Method Detail
addPoint(point)
Parameters:
point

clone()

contains(x, y)
Parameters:
x
y

equals(anotherPolyline)
Parameters:
anotherPolyline

getBounds()

getPoints()

<static> {Polyline} Polyline.load(o)
Creates a {Polyline} out of JSON parsed object
Author: Alex Gheorghiu .
Parameters:
{JSONObject} o
- the JSON parsed object
Returns:
{Polyline} a newly constructed Polyline

near(x, y, radius)
Parameters:
x
y
radius

paint(context)
Parameters:
context

toString()

toSVG()
Render the SVG fragment for this primitive

transform(matrix)
Parameters:
matrix

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 09 2011 12:47:26 GMT+0300 (EEST)