com.vividsolutions.jump.workbench.ui.cursortool
Class PolygonTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended by com.vividsolutions.jump.workbench.ui.cursortool.PolygonTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
AutoCompletePolygonCursorTool, CutPolygonTool, DrawFenceTool, DrawPolygonFenceTool, DrawPolygonTool

public abstract class PolygonTool
extends MultiClickTool


Nested Class Summary
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
PolygonTool()
           
 
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 com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, isFinishingRelease, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, 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, isRightMouseButtonUsed, 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

PolygonTool

public PolygonTool()
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