Package hec.map
Class MousePanAdapter
java.lang.Object
hec.map.MapMouseAdapter
hec.map.MousePanAdapter
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
Pan adapter for MapCanvas.
-
Field Summary
FieldsFields inherited from class hec.map.MapMouseAdapter
_mapCanvas, _mapPanel, _strbuf
-
Method Summary
Modifier and TypeMethodDescriptionstatic ButtonGifStrings
Gets the Cursor that should be displayed when this mouse adapter is active.void
called when the mouse is dragged.void
called when the mouse is Pressed.void
called when the mouse is released.Methods inherited from class hec.map.MapMouseAdapter
abort, getWorldPt, getWorldPt, init, mouseClicked, mouseEntered, mouseExited, mouseMoved, pressedButton1, pressedButton2, pressedButton3
-
Field Details
-
PAN_DOWN_CURSOR
- See Also:
-
PAN_UP_CURSOR
- See Also:
-
DEBUG
public static final boolean DEBUG- See Also:
-
-
Method Details
-
buildDefaultButtonGifStrings
-
mouseReleased
Description copied from class:MapMouseAdapter
called when the mouse is released. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMapMouseAdapter
- Parameters:
e
- the MouseEvent
-
mousePressed
Description copied from class:MapMouseAdapter
called when the mouse is Pressed. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMapMouseAdapter
- Parameters:
e
- the MouseEvent
-
mouseDragged
Description copied from class:MapMouseAdapter
called when the mouse is dragged. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classMapMouseAdapter
- Parameters:
e
- the MouseEvent
-
getCursor
Description copied from class:MapMouseAdapter
Gets the Cursor that should be displayed when this mouse adapter is active. By default it returnsjava.awt.Cursor.getDefaultCursor()
- Overrides:
getCursor
in classMapMouseAdapter
- Returns:
- the Cursor to use for this adapter
-