Class Polyline
Defined in: primitives.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Polyline()
Creates an instance of a Polyline
|
Field Attributes | Field Name and Description |
---|---|
Serialization type
|
|
An {Array} of Points
|
|
The starting Point.
|
|
The Style of the polyline
|
Method Attributes | Method Name and Description |
---|---|
addPoint(point)
|
|
clone()
|
|
contains(x, y)
|
|
equals(anotherPolyline)
|
|
<static> |
Polyline.load(o)
Creates a {Polyline} out of JSON parsed object
|
near(x, y, radius)
|
|
paint(context)
|
|
toString()
|
|
toSVG()
Render the SVG fragment for this primitive
|
|
transform(matrix)
|
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.
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