edu.sc.seis.fissuresUtil.map.tools
Class PanTool

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.map.tools.OpenMapTool
      extended by edu.sc.seis.fissuresUtil.map.tools.PanTool
All Implemented Interfaces:
com.bbn.openmap.event.MapMouseMode, com.bbn.openmap.event.PaintListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class PanTool
extends OpenMapTool


Constructor Summary
PanTool(OpenMap om)
           
 
Method Summary
 java.lang.String getID()
           
 java.lang.String getPrettyName()
          Return a pretty name, suitable for the GUI.
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 
Methods inherited from class edu.sc.seis.fissuresUtil.map.tools.OpenMapTool
actAsProxyFor, actAsProxyFor, addMapMouseListener, getGUIIcon, getModeCursor, getPressedCursor, getProxyDistributionMask, isActive, isProxyFor, isVisible, listenerPaint, mouseClicked, mouseEntered, mouseExited, mouseMoved, releaseProxy, removeAllMapMouseListeners, removeMapMouseListener, setActive, setModeCursor, setPressedCursor, setProxyDistributionMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanTool

public PanTool(OpenMap om)
Method Detail

getID

public java.lang.String getID()

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Description copied from class: OpenMapTool
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class OpenMapTool

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Description copied from class: OpenMapTool
Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class OpenMapTool

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Description copied from class: OpenMapTool
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class OpenMapTool

getPrettyName

public java.lang.String getPrettyName()
Return a pretty name, suitable for the GUI.