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

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.SpecifyFeaturesTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
AbstractClickSelectedLineStringsTool, AbstractDeleteVectorTool, DeleteVertexTool, FeatureInfoTool, SnapVerticesTool

public abstract class SpecifyFeaturesTool
extends DragTool

Allows the user to specify features by clicking on them or drawing a box around them. Works with invalid features (using EnvelopeIntersector).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER
 
Constructor Summary
SpecifyFeaturesTool()
           
 
Method Summary
static java.util.Map layerToSpecifiedFeaturesMap(java.util.Iterator layerIterator, com.vividsolutions.jts.geom.Envelope boxInModelCoordinates)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
mouseDragged, mousePressed, mouseReleased
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, createCursor, createCursor, createStandardSnappingPolicies, deactivate, getColor, getCursor, getName, getSnapManager, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, name, setColor, toString, workbench, workbenchFrame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
 

Constructor Detail

SpecifyFeaturesTool

public SpecifyFeaturesTool()
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class AbstractCursorTool

layerToSpecifiedFeaturesMap

public static java.util.Map layerToSpecifiedFeaturesMap(java.util.Iterator layerIterator,
                                                        com.vividsolutions.jts.geom.Envelope boxInModelCoordinates)
                                                 throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException