com.vividsolutions.jump.workbench.ui.snap
Class SnapToGridPolicy

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.snap.SnapToGridPolicy
All Implemented Interfaces:
SnapPolicy

public class SnapToGridPolicy
extends java.lang.Object
implements SnapPolicy


Field Summary
static java.lang.String ENABLED_KEY
           
static java.lang.String GRID_SIZE_KEY
           
 
Constructor Summary
SnapToGridPolicy(Blackboard blackboard)
           
 
Method Summary
 com.vividsolutions.jts.geom.Coordinate snap(LayerViewPanel panel, com.vividsolutions.jts.geom.Coordinate originalCoordinate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED_KEY

public static final java.lang.String ENABLED_KEY

GRID_SIZE_KEY

public static final java.lang.String GRID_SIZE_KEY
Constructor Detail

SnapToGridPolicy

public SnapToGridPolicy(Blackboard blackboard)
Method Detail

snap

public com.vividsolutions.jts.geom.Coordinate snap(LayerViewPanel panel,
                                                   com.vividsolutions.jts.geom.Coordinate originalCoordinate)
Specified by:
snap in interface SnapPolicy