Class MeasureTool
- 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.MeasureTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
public class MeasureTool extends MultiClickTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Constructor Summary
Constructors Constructor Description MeasureTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()CursorgetCursor()IcongetIcon()voidmouseLocationChanged(MouseEvent e)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.MultiClickTool
add, cancelGesture, finishGesture, getCoordinates, getShape, isFinishingRelease, mouseDragged, 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
-
-
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
mouseLocationChanged
public void mouseLocationChanged(MouseEvent e)
- Overrides:
mouseLocationChangedin classMultiClickTool
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
NoninvertibleTransformException
-
-