Class DrawCircleWithGivenRadiusTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
org.openjump.core.ui.plugin.edittoolbox.cursortools.DrawCircleWithGivenRadiusTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.locationtech.jts.geom.CoordinateModify using #setDestinationFields inherited from class MultiClickTool
mouseLastLocFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(LayerViewPanel layerViewPanel) protected booleancheckCircle(org.locationtech.jts.geom.Geometry circle) static CursorToolcreate(WorkbenchContext context) protected voideventsgetIcon()getName()Returns a very brief description of this CursorTool.protected ShapegetShape()changed to get circle around mouse pointerbooleanmakeDialogThings(LayerViewPanel panel) voidoverwritten super method to show the circle on any mouse moveprotected voidsetModelDestination(org.locationtech.jts.geom.Coordinate destination) protected voidsetViewDestination(Point2D destination) Methods inherited from class NClickTool
getModelDestination, getModelSource, isFinishingRelease, numClicksMethods inherited from class MultiClickTool
add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, mouseDragged, mouseLocationChanged, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArrayMethods inherited from class AbstractCursorTool
add, allowSnapping, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, 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
-
Field Details
-
modelDestination
protected org.locationtech.jts.geom.Coordinate modelDestinationModify using #setDestination
-
-
Method Details
-
create
-
gestureFinished
events- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
checkCircle
protected boolean checkCircle(org.locationtech.jts.geom.Geometry circle) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
activate
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classMultiClickTool
-
getCursor
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
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
-
mouseMoved
overwritten super method to show the circle on any mouse move- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMultiClickTool
-
getShape
changed to get circle around mouse pointer- Overrides:
getShapein classMultiClickTool- Returns:
- null if nothing should be drawn
-
makeDialogThings
- Throws:
Exception
-
setViewDestination
- Throws:
NoninvertibleTransformException
-
setModelDestination
protected void setModelDestination(org.locationtech.jts.geom.Coordinate destination)
-