Class SpecifyFeaturesTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.SpecifyFeaturesTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
- Direct Known Subclasses:
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 org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
-
Constructor Summary
Constructors Constructor Description SpecifyFeaturesTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IteratorcandidateLayersIterator()protected MaplayerToSpecifiedFeaturesMap()Returns the layers containing the specified features, and the specified features themselves.static MaplayerToSpecifiedFeaturesMap(Iterator layerIterator, org.locationtech.jts.geom.Envelope boxInModelCoordinates)voidmouseClicked(MouseEvent e)protected SetspecifiedFeatures()protected CollectionspecifiedFeatures(Collection layers)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, gestureFinished, getColor, getCursor, getName, 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 org.locationtech.jts.jump.workbench.ui.cursortool.CursorTool
getIcon
-
-
-
-
Method Detail
-
candidateLayersIterator
protected Iterator candidateLayersIterator()
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classAbstractCursorTool
-
specifiedFeatures
protected Set specifiedFeatures() throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
layerToSpecifiedFeaturesMap
protected Map layerToSpecifiedFeaturesMap() throws NoninvertibleTransformException
Returns the layers containing the specified features, and the specified features themselves.- Throws:
NoninvertibleTransformException
-
layerToSpecifiedFeaturesMap
public static Map layerToSpecifiedFeaturesMap(Iterator layerIterator, org.locationtech.jts.geom.Envelope boxInModelCoordinates) throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
specifiedFeatures
protected Collection specifiedFeatures(Collection layers) throws NoninvertibleTransformException
- Parameters:
layers- Layers to filter in- Throws:
NoninvertibleTransformException
-
-