org.openjump.core.ui.plugin.edittoolbox.cursortools
Class ConstrainedMultiClickArcTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
          extended by org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickArcTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.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
protected  boolean clockwise
           
protected  double fullAngle
           
 
Fields inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
coordinates, drawClosed, tentativeCoordinate
 
Constructor Summary
ConstrainedMultiClickArcTool()
           
 
Method Summary
protected  java.awt.Shape getShape()
           
 
Methods inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, isFinishingRelease, isRightMouseButtonUsed, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, toArray
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, gestureFinished, getColor, getCursor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
 
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
 

Field Detail

clockwise

protected boolean clockwise

fullAngle

protected double fullAngle
Constructor Detail

ConstrainedMultiClickArcTool

public ConstrainedMultiClickArcTool()
Method Detail

getShape

protected java.awt.Shape getShape()
                           throws java.awt.geom.NoninvertibleTransformException
Overrides:
getShape in class ConstrainedMultiClickTool
Returns:
null if nothing should be drawn
Throws:
java.awt.geom.NoninvertibleTransformException