Class CreateDelineationTool
- 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.demo.delineation.CreateDelineationTool
-
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
,CursorTool
public class CreateDelineationTool extends NClickTool
Creates a new delineation feature.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Constructor Summary
Constructors Constructor Description CreateDelineationTool(Collection snapPolicies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(org.locationtech.jts.geom.Coordinate c)
protected void
gestureFinished()
Cursor
getCursor()
Icon
getIcon()
protected Shape
getShape(Point2D source, Point2D 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
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, 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
-
-
-
-
Constructor Detail
-
CreateDelineationTool
public CreateDelineationTool(Collection snapPolicies)
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException
- Specified by:
gestureFinished
in classAbstractCursorTool
- Throws:
NoninvertibleTransformException
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classAbstractCursorTool
-
add
protected void add(org.locationtech.jts.geom.Coordinate c)
- Overrides:
add
in classMultiClickTool
-
-