Class ConstrainedMultiClickArcTool
- 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.ConstrainedMultiClickArcTool
-
- All Implemented Interfaces:
CursorTool
,MouseListener
,MouseMotionListener
,EventListener
- Direct Known Subclasses:
DrawConstrainedArcTool
public abstract class ConstrainedMultiClickArcTool extends ConstrainedMultiClickTool
A VisualIndicatorTool that allows the user to draw shapes with multiple vertices. Double-clicking ends the gesture.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
clockwise
protected double
fullAngle
-
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
-
-
Constructor Summary
Constructors Constructor Description ConstrainedMultiClickArcTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Shape
getShape()
-
Methods inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, isFinishingRelease, mouseDragged, mouseLocationChanged, 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, gestureFinished, getColor, getCursor, getImage, getImagePosition, getName, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getIcon
-
-
-
-
Constructor Detail
-
ConstrainedMultiClickArcTool
public ConstrainedMultiClickArcTool(WorkbenchContext context)
-
-
Method Detail
-
getShape
protected Shape getShape() throws NoninvertibleTransformException
- Overrides:
getShape
in classConstrainedMultiClickTool
- Returns:
- null if nothing should be drawn
- Throws:
NoninvertibleTransformException
-
-