Package hec.map.image
Class ImageMouseAdapter
java.lang.Object
hec.map.MapMouseAdapter
hec.map.image.ImageMouseAdapter
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
-
Field Summary
Fields inherited from class hec.map.MapMouseAdapter
_mapCanvas, _mapPanel, _strbuf
-
Constructor Summary
ConstructorsConstructorDescriptionImageMouseAdapter
(MapPanel panel, MapCanvas canvas) Creates a new instance of ImageMouseAdapter -
Method Summary
Modifier and TypeMethodDescriptionstatic ButtonGifStrings
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, buildDefaultButtonGifStrings, getCursor, getWorldPt, getWorldPt, init, mouseClicked, mouseEntered, mouseExited, mousePressed, pressedButton1, pressedButton2, pressedButton3
-
Constructor Details
-
ImageMouseAdapter
Creates a new instance of ImageMouseAdapter
-
-
Method Details
-
createButtonGifStrings
-
mouseMoved
Description copied from class:MapMouseAdapter
called when the mouse is Pressed. This method translates the current mouse coordinates into world coordinates and tells the MapPanel to display the information This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
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
-
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
-