Class NoteTool
- 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.NoteTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
public class NoteTool extends NClickTool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNoteTool.NoteStyle-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Constructor Summary
Constructors Constructor Description NoteTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeactivate()protected voidgestureFinished()CursorgetCursor()IcongetIcon()protected ShapegetShape()-
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, 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, 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
-
-
-
-
Method Detail
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceCursorTool- Overrides:
deactivatein classAbstractCursorTool
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getShape
protected Shape getShape() throws NoninvertibleTransformException
- Overrides:
getShapein classMultiClickTool- Returns:
- null if nothing should be drawn
- Throws:
NoninvertibleTransformException
-
-