public abstract class MultiClickTool extends AbstractCursorTool
AbstractCursorTool.Listener| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Point |
mouseLastLoc |
isLinuxOS, panel| Constructor and Description |
|---|
MultiClickTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(LayerViewPanel new_panel) |
protected void |
add(com.vividsolutions.jts.geom.Coordinate c) |
void |
cancelGesture()
Notifies the CursorTool that a party is requesting that the gesture
currently in progress be aborted.
|
void |
deactivate() |
protected void |
finishGesture() |
java.util.List |
getCoordinates()
Will return an empty List once the shape is cleared.
|
protected CoordinateListMetrics |
getMetrics() |
protected java.awt.Shape |
getShape() |
protected boolean |
isFinishingRelease(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
protected void |
mouseLocationChanged(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
setCloseRing(boolean closeRing) |
protected void |
setMetricsDisplay(CoordinateListMetrics metrics) |
protected com.vividsolutions.jts.geom.Coordinate[] |
toArray(java.util.List coordinates) |
add, allowSnapping, check, cleanup, clearImage, clearShape, createCursor, createCursor, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, gestureFinished, getColor, getCursor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getTaskFrame, getWorkbench, getWorkbenchFrame, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setFilling, setPanel, setStroke, setStrokeWidth, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIconprotected void setMetricsDisplay(CoordinateListMetrics metrics)
protected CoordinateListMetrics getMetrics()
protected void setCloseRing(boolean closeRing)
public java.util.List getCoordinates()
AbstractCursorTool.clearShape()public void cancelGesture()
CursorToolcancelGesture in interface CursorToolcancelGesture in class AbstractCursorToolpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class AbstractCursorToolprotected void mouseLocationChanged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class AbstractCursorToolpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractCursorToolprotected void add(com.vividsolutions.jts.geom.Coordinate c)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class AbstractCursorToolprotected java.awt.Shape getShape()
throws java.awt.geom.NoninvertibleTransformException
getShape in class AbstractCursorTooljava.awt.geom.NoninvertibleTransformExceptionprotected boolean isFinishingRelease(java.awt.event.MouseEvent e)
protected com.vividsolutions.jts.geom.Coordinate[] toArray(java.util.List coordinates)
protected void finishGesture()
throws java.lang.Exception
java.lang.Exceptionpublic void deactivate()
deactivate in interface CursorTooldeactivate in class AbstractCursorToolpublic void activate(LayerViewPanel new_panel)
activate in interface CursorToolactivate in class AbstractCursorTool