Class VectorTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.MultiClickTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.NClickTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.VectorTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
- Direct Known Subclasses:
DrawIncrementalWarpingVectorTool,DrawWarpingVectorTool
public abstract class VectorTool extends NClickTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.locationtech.jts.geom.GeometryFactorygeometryFactory
-
Constructor Summary
Constructors Constructor Description VectorTool()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected UndoableCommandcreateCommand()protected abstract AbstractVectorLayerFindercreateVectorLayerFinder(LayerManagerProxy layerManagerProxy)protected Featurefeature(org.locationtech.jts.geom.LineString lineString, Layer layer, UndoableCommand command)protected voidgestureFinished()protected ShapegetShape(Point2D source, Point2D destination)protected org.locationtech.jts.geom.LineStringlineString(org.locationtech.jts.geom.Coordinate source, org.locationtech.jts.geom.Coordinate destination)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.MultiClickTool
add, cancelGesture, finishGesture, getCoordinates, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, toArray
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, 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 org.locationtech.jts.jump.workbench.ui.cursortool.CursorTool
getIcon
-
-
-
-
Method Detail
-
feature
protected Feature feature(org.locationtech.jts.geom.LineString lineString, Layer layer, UndoableCommand command)
-
lineString
protected org.locationtech.jts.geom.LineString lineString(org.locationtech.jts.geom.Coordinate source, org.locationtech.jts.geom.Coordinate destination) throws NoninvertibleTransformException- Throws:
NoninvertibleTransformException
-
createVectorLayerFinder
protected abstract AbstractVectorLayerFinder createVectorLayerFinder(LayerManagerProxy layerManagerProxy)
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
createCommand
protected UndoableCommand createCommand() throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
-