com.vividsolutions.jump.demo.delineation
Class CreateDelineationTool

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
      extended bycom.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
          extended bycom.vividsolutions.jump.workbench.ui.cursortool.NClickTool
              extended bycom.vividsolutions.jump.demo.delineation.CreateDelineationTool
All Implemented Interfaces:
CursorTool, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class CreateDelineationTool
extends NClickTool

Creates a new delineation feature.


Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
 
Constructor Summary
CreateDelineationTool(java.util.Collection snapPolicies)
           
 
Method Summary
protected  void add(com.vividsolutions.jts.geom.Coordinate c)
           
protected  void gestureFinished()
           
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
protected  java.awt.Shape getShape(java.awt.geom.Point2D source, java.awt.geom.Point2D destination)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
cancelGesture, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, 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
 

Constructor Detail

CreateDelineationTool

public CreateDelineationTool(java.util.Collection snapPolicies)
Method Detail

getIcon

public javax.swing.Icon getIcon()
Returns:
null to use a default icon

gestureFinished

protected void gestureFinished()
                        throws java.awt.geom.NoninvertibleTransformException
Specified by:
gestureFinished in class AbstractCursorTool
Throws:
java.awt.geom.NoninvertibleTransformException

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool
Overrides:
getCursor in class AbstractCursorTool

getShape

protected java.awt.Shape getShape(java.awt.geom.Point2D source,
                                  java.awt.geom.Point2D destination)

add

protected void add(com.vividsolutions.jts.geom.Coordinate c)
Overrides:
add in class MultiClickTool