Class DMCPoly

Object
   |
   +--DMCPoly
Direct Known Subclasses:
DMCLineString, DMCPolygon

class DMCPoly

Defined in APIJS.js


Field Summary
 Object points
          
 string TYPE
          Geometry type of the object
 
Constructor Summary
DMCPoly(pointArray, type)
           
 
Method Summary
 int getArea()
           Returns the area of the line string.
 DMCBounds getBounds()
           Returns a DMCBounds that contains the polygon
 Object getHandles()
          
 int getLength()
           Returns the length of the line string
 DMCPoint[] getPoints()
           Returns all the points that comprise the line string.
 DMCPoint getVertex( <int> index)
           Returns the vertex at the specified index
 int getVertexCount()
           Returns the vertext count
 Object insertVertex(newPt, index)
          
 Object modifyByHandle(handle, newPosPt, anchorPt)
          
 Object projectToPixels(map)
          
 void setPoints(<DMCPoint[]> pts)
           Sets the points that comprise the line string.

Field Detail

points

Object points

TYPE

string TYPE

Constructor Detail

DMCPoly

DMCPoly(pointArray, type)

Method Detail

getArea

int getArea()

getBounds

DMCBounds getBounds()

getHandles

Object getHandles()

getLength

int getLength()

getPoints

DMCPoint[] getPoints()

getVertex

DMCPoint getVertex( <int> index)

getVertexCount

int getVertexCount()

insertVertex

Object insertVertex(newPt, index)

modifyByHandle

Object modifyByHandle(handle, newPosPt, anchorPt)

projectToPixels

Object projectToPixels(map)

setPoints

void setPoints(<DMCPoint[]> pts)


Documentation generated by JSDoc on Mon Nov 24 17:54:35 2008