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, workbenchFrame
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIcon
protected void setMetricsDisplay(CoordinateListMetrics metrics)
protected CoordinateListMetrics getMetrics()
protected void setCloseRing(boolean closeRing)
public java.util.List getCoordinates()
AbstractCursorTool.clearShape()
public void cancelGesture()
CursorTool
cancelGesture
in interface CursorTool
cancelGesture
in class AbstractCursorTool
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class AbstractCursorTool
protected void mouseLocationChanged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class AbstractCursorTool
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class AbstractCursorTool
protected void add(com.vividsolutions.jts.geom.Coordinate c)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class AbstractCursorTool
protected java.awt.Shape getShape() throws java.awt.geom.NoninvertibleTransformException
getShape
in class AbstractCursorTool
java.awt.geom.NoninvertibleTransformException
protected 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.Exception
public void deactivate()
deactivate
in interface CursorTool
deactivate
in class AbstractCursorTool
public void activate(LayerViewPanel new_panel)
activate
in interface CursorTool
activate
in class AbstractCursorTool