Class VectorTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.VectorTool
-
- All Implemented Interfaces:
CursorTool,MouseListener,MouseMotionListener,EventListener
- Direct Known Subclasses:
DrawIncrementalWarpingVectorTool,DrawWarpingVectorTool
public abstract class VectorTool extends NClickTool
-
-
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 org.locationtech.jts.geom.GeometryFactorygeometryFactory-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
mouseLastLoc
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description VectorTool(WorkbenchContext context)
-
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 com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease, numClicks
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, 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
-
-
-
-
Constructor Detail
-
VectorTool
public VectorTool(WorkbenchContext context)
-
-
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
-
-