com.vividsolutions.jump.workbench.ui.cursortool.editing
Class MoveVertexTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.DragTool
          extended by com.vividsolutions.jump.workbench.ui.cursortool.editing.MoveVertexTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class MoveVertexTool
extends DragTool


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
static int TOLERANCE
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER
 
Constructor Summary
MoveVertexTool(EnableCheckFactory checkFactory)
           
 
Method Summary
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
 void mousePressed(java.awt.event.MouseEvent e)
          Begins handling of the drag.
 void moveVertices(com.vividsolutions.jts.geom.Coordinate initialLocation, com.vividsolutions.jts.geom.Coordinate finalLocation)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
mouseDragged, mouseReleased
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, createCursor, createCursor, createStandardSnappingPolicies, deactivate, getColor, getName, getSnapManager, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, setColor, toString, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOLERANCE

public static final int TOLERANCE
See Also:
Constant Field Values
Constructor Detail

MoveVertexTool

public MoveVertexTool(EnableCheckFactory checkFactory)
Method Detail

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool
Overrides:
getCursor in class AbstractCursorTool

getIcon

public javax.swing.Icon getIcon()
Returns:
null to use a default icon

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Description copied from class: DragTool
Begins handling of the drag. Subclasses can prevent handling of the drag by overriding this method and not calling it.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class DragTool

moveVertices

public void moveVertices(com.vividsolutions.jts.geom.Coordinate initialLocation,
                         com.vividsolutions.jts.geom.Coordinate finalLocation)
                  throws java.lang.Exception
Throws:
java.lang.Exception