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 ButtonGifStringsvoidcalled when the mouse is dragged.voidcalled when the mouse is Pressed.voidcalled 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:MapMouseAdaptercalled 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:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMapMouseAdapter- Parameters:
e- the MouseEvent
-
mouseDragged
Description copied from class:MapMouseAdaptercalled when the mouse is dragged. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMapMouseAdapter- Parameters:
e- the MouseEvent
-
mouseReleased
Description copied from class:MapMouseAdaptercalled when the mouse is released. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMapMouseAdapter- Parameters:
e- the MouseEvent
-