Class Snapping

Object
   |
   +--Snapping

class Snapping


a Snapping object stores is jsGraphics rendering of a GeometryArray in various mapframes.
Defined in geometry.js

Requires:


Constructor Summary
Snapping(<String> aTarget, <String> aTolerance, <String> aColor, <Integer> aZIndex)
           
 
Method Summary
 void add(aPoint)
           Adds the point to the stored points with snapping property.
 void addPoint(aPoint)
          
 void check(currPoint)
          
 void clean()
           Removes the highlight.
 Object cleanHighlight()
          
 void draw(<Point> center,<Integer> radius)
           draws a circle to highlight the snapped point.
 Object getNearestNeighbour()
          
 Object getPoint(i)
          
 Object getPointCount()
          
 Point getSnappedPoint()
           Returns the point that is within snapping distance and closest to the mouse cursor.
 Object getTarget()
          
 Object getTolerance()
          
 Boolean isSnapped()
           Determines whether a point is within snapping distance to the mouse cursor
 void resetIndexOfNearestNeighbour()
          
 void resetPoints()
          
 void setIndexOfNearestNeighbour(i)
          
 void store(<GeometryArray> geom, <Point> point)
           Stores the points which will have the snapping property.

Constructor Detail

Snapping

Snapping(<String> aTarget, <String> aTolerance, <String> aColor, <Integer> aZIndex)

Method Detail

add

void add(aPoint)

addPoint

void addPoint(aPoint)

check

void check(currPoint)

clean

void clean()

cleanHighlight

Object cleanHighlight()

draw

void draw(<Point> center,<Integer> radius)

getNearestNeighbour

Object getNearestNeighbour()

getPoint

Object getPoint(i)

getPointCount

Object getPointCount()

getSnappedPoint

Point getSnappedPoint()

getTarget

Object getTarget()

getTolerance

Object getTolerance()

isSnapped

Boolean isSnapped()

resetIndexOfNearestNeighbour

void resetIndexOfNearestNeighbour()

resetPoints

void resetPoints()

setIndexOfNearestNeighbour

void setIndexOfNearestNeighbour(i)

store

void store(<GeometryArray> geom, <Point> point)


Documentation generated by JSDoc on Wed Aug 8 10:35:22 2007