public class PanTool extends OpenMapTool
Modifier and Type | Method and Description |
---|---|
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.
|
actAsProxyFor, actAsProxyFor, addMapMouseListener, getGUIIcon, getModeCursor, getPressedCursor, getProxyDistributionMask, isActive, isProxyFor, isVisible, listenerPaint, mouseClicked, mouseEntered, mouseExited, mouseMoved, releaseProxy, removeAllMapMouseListeners, removeMapMouseListener, setActive, setModeCursor, setPressedCursor, setProxyDistributionMask
public PanTool(OpenMap om)
public java.lang.String getID()
public void mousePressed(java.awt.event.MouseEvent e)
OpenMapTool
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class OpenMapTool
public void mouseDragged(java.awt.event.MouseEvent e)
OpenMapTool
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.
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class OpenMapTool
public void mouseReleased(java.awt.event.MouseEvent e)
OpenMapTool
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class OpenMapTool
public java.lang.String getPrettyName()