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

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
              extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractClickSelectedLineStringsTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
NodeLineStringsTool, SplitLineStringTool

public abstract class AbstractClickSelectedLineStringsTool
extends SpecifyFeaturesTool


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Field Summary
protected static java.lang.String NO_SELECTED_LINESTRINGS_HERE_MESSAGE
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
 
Constructor Summary
AbstractClickSelectedLineStringsTool()
           
 
Method Summary
protected  void gestureFinished()
           
protected abstract  void gestureFinished(java.util.Collection nearbyLineStringFeatures)
           
protected  com.vividsolutions.jts.geom.Point getModelClickPoint()
           
protected  com.vividsolutions.jts.geom.Coordinate getModelSource()
           
 java.lang.String getName()
          Returns a very brief description of this CursorTool.
protected  java.awt.Shape getShape(java.awt.geom.Point2D source, java.awt.geom.Point2D destination)
           
protected  Layer layer(Feature feature, java.util.Map layerToSpecifiedFeaturesMap)
           
protected  void warnLayerNotEditable(Layer layer)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
candidateLayersIterator, layerToSpecifiedFeaturesMap, layerToSpecifiedFeaturesMap, mouseClicked, specifiedFeatures, specifiedFeatures
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
getBoxInModelCoordinates, getModelDestination, 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, getCursor, 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
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
 

Field Detail

NO_SELECTED_LINESTRINGS_HERE_MESSAGE

protected static final java.lang.String NO_SELECTED_LINESTRINGS_HERE_MESSAGE
See Also:
Constant Field Values
Constructor Detail

AbstractClickSelectedLineStringsTool

public AbstractClickSelectedLineStringsTool()
Method Detail

warnLayerNotEditable

protected void warnLayerNotEditable(Layer layer)

getName

public java.lang.String getName()
Description copied from interface: CursorTool
Returns a very brief description of this CursorTool.

Specified by:
getName in interface CursorTool
Overrides:
getName in class AbstractCursorTool
Returns:
the name of this CursorTool

getModelSource

protected com.vividsolutions.jts.geom.Coordinate getModelSource()
Overrides:
getModelSource in class DragTool

getShape

protected java.awt.Shape getShape(java.awt.geom.Point2D source,
                                  java.awt.geom.Point2D destination)
                           throws java.lang.Exception
Overrides:
getShape in class DragTool
Returns:
null if nothing should be drawn
Throws:
java.lang.Exception

getModelClickPoint

protected com.vividsolutions.jts.geom.Point getModelClickPoint()

gestureFinished

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

gestureFinished

protected abstract void gestureFinished(java.util.Collection nearbyLineStringFeatures)
                                 throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException

layer

protected Layer layer(Feature feature,
                      java.util.Map layerToSpecifiedFeaturesMap)