Class DrawConstrainedCircleTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.DrawConstrainedCircleTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
Fields inherited from class ConstrainedMultiClickTool
coordinates, drawClosed, mouseLastLoc, tentativeCoordinateFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic CursorToolcreate(WorkbenchContext context) protected voidprotected org.locationtech.jts.geom.PolygongetIcon()getName()Returns a very brief description of this CursorTool.protected ShapegetShape()voidMethods inherited from class ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, isFinishingRelease, mouseDragged, mouseMoved, mousePressed, mouseReleased, toArrayMethods inherited from class AbstractCursorTool
add, allowSnapping, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, 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
-
Method Details
-
create
-
getName
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
getIcon
- Returns:
- null to use a default icon
-
gestureFinished
- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
getCircle
- Throws:
NoninvertibleTransformException
-
checkCircle
- Throws:
NoninvertibleTransformException
-
getShape
- Overrides:
getShapein classConstrainedMultiClickTool- Returns:
- null if nothing should be drawn
- Throws:
NoninvertibleTransformException
-
mouseLocationChanged
- Overrides:
mouseLocationChangedin classConstrainedMultiClickTool
-