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

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.ConstrainedPolygonTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
DrawConstrainedPolygonTool

public abstract class ConstrainedPolygonTool
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, tentativeCoordinate
 
Constructor Summary
ConstrainedPolygonTool()
           
 
Method Summary
protected  boolean checkPolygon()
           
protected  com.vividsolutions.jts.geom.Polygon getPolygon()
          Callers should check whether the polygon returned is valid.
 
Methods inherited from class org.openjump.core.ui.plugin.edittoolbox.cursortools.ConstrainedMultiClickTool
activate, add, cancelGesture, deactivate, doConstraint, finishGesture, getCoordinates, getIntersection, getShape, 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
 

Constructor Detail

ConstrainedPolygonTool

public ConstrainedPolygonTool()
Method Detail

getPolygon

protected com.vividsolutions.jts.geom.Polygon getPolygon()
                                                  throws java.awt.geom.NoninvertibleTransformException
Callers should check whether the polygon returned is valid.

Throws:
java.awt.geom.NoninvertibleTransformException

checkPolygon

protected boolean checkPolygon()
                        throws java.awt.geom.NoninvertibleTransformException
Throws:
java.awt.geom.NoninvertibleTransformException