com.vividsolutions.jump.workbench.ui.cursortool
Class VectorTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended by com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
              extended by com.vividsolutions.jump.workbench.ui.cursortool.VectorTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
DrawIncrementalWarpingVectorTool, DrawWarpingVectorTool

public abstract class VectorTool
extends NClickTool


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
protected  com.vividsolutions.jts.geom.GeometryFactory geometryFactory
           
 
Constructor Summary
VectorTool()
           
 
Method Summary
protected  UndoableCommand createCommand()
           
protected abstract  AbstractVectorLayerFinder createVectorLayerFinder(LayerManagerProxy layerManagerProxy)
           
protected  Feature feature(com.vividsolutions.jts.geom.LineString lineString, Layer layer, UndoableCommand command)
           
protected  void gestureFinished()
           
protected  java.awt.Shape getShape(java.awt.geom.Point2D source, java.awt.geom.Point2D destination)
           
protected  com.vividsolutions.jts.geom.LineString lineString(com.vividsolutions.jts.geom.Coordinate source, com.vividsolutions.jts.geom.Coordinate destination)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getCursor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, 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
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
 

Field Detail

geometryFactory

protected com.vividsolutions.jts.geom.GeometryFactory geometryFactory
Constructor Detail

VectorTool

public VectorTool()
Method Detail

feature

protected Feature feature(com.vividsolutions.jts.geom.LineString lineString,
                          Layer layer,
                          UndoableCommand command)

lineString

protected com.vividsolutions.jts.geom.LineString lineString(com.vividsolutions.jts.geom.Coordinate source,
                                                            com.vividsolutions.jts.geom.Coordinate destination)
                                                     throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException

getShape

protected java.awt.Shape getShape(java.awt.geom.Point2D source,
                                  java.awt.geom.Point2D destination)

createVectorLayerFinder

protected abstract AbstractVectorLayerFinder createVectorLayerFinder(LayerManagerProxy layerManagerProxy)

gestureFinished

protected void gestureFinished()
                        throws java.lang.Exception
Specified by:
gestureFinished in class AbstractCursorTool
Throws:
java.lang.Exception

createCommand

protected UndoableCommand createCommand()
                                 throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException