com.vividsolutions.jcs.plugin.clean.coveragecleaningtoolbox
Class UpdatingSnapVerticesTool

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended bycom.vividsolutions.jump.workbench.ui.cursortool.DragTool
          extended bycom.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
              extended bycom.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesTool
                  extended bycom.vividsolutions.jcs.plugin.clean.coveragecleaningtoolbox.UpdatingSnapVerticesTool
All Implemented Interfaces:
com.vividsolutions.jump.workbench.ui.cursortool.CursorTool, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class UpdatingSnapVerticesTool
extends com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesTool

Differences from SnapVerticesTool: (1) snaps to and snaps one layer: the input layer specified in the toolbox (2) updates gap indicators


Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.Listener
 
Field Summary
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
 
Constructor Summary
UpdatingSnapVerticesTool(com.vividsolutions.jump.workbench.WorkbenchContext context, ToolboxPanel toolboxPanel)
           
 
Method Summary
protected  java.util.Iterator candidateLayersIterator()
           
protected  void gestureFinished()
           
 java.lang.String getName()
           
protected  void snapVertices(java.util.Collection editableLayers, com.vividsolutions.jts.geom.Coordinate suggestedTarget, com.vividsolutions.jump.feature.Feature targetFeature)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesTool
getBoxInModelCoordinates, getCursor, getIcon, getShape
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
layerToSpecifiedFeaturesMap, layerToSpecifiedFeaturesMap, mouseClicked, specifiedFeatures, specifiedFeatures
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdatingSnapVerticesTool

public UpdatingSnapVerticesTool(com.vividsolutions.jump.workbench.WorkbenchContext context,
                                ToolboxPanel toolboxPanel)
Method Detail

getName

public java.lang.String getName()

gestureFinished

protected void gestureFinished()
                        throws java.lang.Exception
Throws:
java.lang.Exception

candidateLayersIterator

protected java.util.Iterator candidateLayersIterator()

snapVertices

protected void snapVertices(java.util.Collection editableLayers,
                            com.vividsolutions.jts.geom.Coordinate suggestedTarget,
                            com.vividsolutions.jump.feature.Feature targetFeature)
                     throws java.lang.Exception,
                            java.awt.geom.NoninvertibleTransformException
Throws:
java.lang.Exception
java.awt.geom.NoninvertibleTransformException