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
public class DrawConstrainedCircleTool extends ConstrainedMultiClickTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
coordinates, drawClosed, mouseLastLoc, tentativeCoordinate
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckCircle()static CursorToolcreate(WorkbenchContext context)protected voidgestureFinished()protected org.locationtech.jts.geom.PolygongetCircle()IcongetIcon()StringgetName()Returns a very brief description of this CursorTool.protected ShapegetShape()voidmouseLocationChanged(MouseEvent e)-
Methods inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, isFinishingRelease, mouseDragged, mouseMoved, mousePressed, mouseReleased, toArray
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.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 Detail
-
create
public static CursorTool create(WorkbenchContext context)
-
getName
public String 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
public Icon getIcon()
- Returns:
- null to use a default icon
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
getCircle
protected org.locationtech.jts.geom.Polygon getCircle() throws NoninvertibleTransformException- Throws:
NoninvertibleTransformException
-
checkCircle
protected boolean checkCircle() throws NoninvertibleTransformException- Throws:
NoninvertibleTransformException
-
getShape
protected Shape getShape() throws NoninvertibleTransformException
- Overrides:
getShapein classConstrainedMultiClickTool- Returns:
- null if nothing should be drawn
- Throws:
NoninvertibleTransformException
-
mouseLocationChanged
public void mouseLocationChanged(MouseEvent e)
- Overrides:
mouseLocationChangedin classConstrainedMultiClickTool
-
-