Class AbstractClickSelectedLineStringsTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.DragTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractClickSelectedLineStringsTool
-
- All Implemented Interfaces:
CursorTool,MouseListener,MouseMotionListener,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
Fields Modifier and Type Field Description protected static StringNO_SELECTED_LINESTRINGS_HERE_MESSAGE-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description AbstractClickSelectedLineStringsTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()protected abstract voidgestureFinished(Collection<Feature> nearbyLineStringFeatures)protected org.locationtech.jts.geom.PointgetModelClickPoint()protected org.locationtech.jts.geom.CoordinategetModelSource()StringgetName()Returns a very brief description of this CursorTool.protected ShapegetShape(Point2D source, Point2D destination)protected Layerlayer(Feature feature, Map<Layer,Set<Feature>> layerToSpecifiedFeaturesMap)protected voidwarnLayerNotEditable(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
deactivate, 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, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
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 String NO_SELECTED_LINESTRINGS_HERE_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractClickSelectedLineStringsTool
public AbstractClickSelectedLineStringsTool(WorkbenchContext context)
-
-
Method Detail
-
warnLayerNotEditable
protected void warnLayerNotEditable(Layer layer)
-
getName
public String getName()
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
getModelSource
protected org.locationtech.jts.geom.Coordinate getModelSource()
- Overrides:
getModelSourcein classDragTool
-
getModelClickPoint
protected org.locationtech.jts.geom.Point getModelClickPoint()
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
gestureFinished
protected abstract void gestureFinished(Collection<Feature> nearbyLineStringFeatures) throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
-