Package hec.map.streamAlignment
Class StreamNodeAdapter
java.lang.Object
hec.map.MapMouseAdapter
hec.map.streamAlignment.StreamNodeAdapter
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,EventListener
public class StreamNodeAdapter
extends MapMouseAdapter
implements MouseListener, MouseMotionListener
Mouse adapter for the stream nodes.
-
Field Summary
FieldsFields inherited from class hec.map.MapMouseAdapter
_mapCanvas, _strbuf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
called when this MouseAdapter is made no longer the active adapter.void
init()
called when this MouseAdapter is made the active adapter.void
called when the mouse is clicked.void
called when the mouse is dragged.void
called when the mouse is Pressed.void
called when the mouse is Pressed.void
called when the mouse is released.Methods inherited from class hec.map.MapMouseAdapter
buildDefaultButtonGifStrings, getCursor, getWorldPt, getWorldPt, mouseEntered, mouseExited, pressedButton1, pressedButton2, pressedButton3
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
-
Field Details
-
LOCK_MSG
- See Also:
-
-
Constructor Details
-
StreamNodeAdapter
-
-
Method Details
-
init
public void init()Description copied from class:MapMouseAdapter
called when this MouseAdapter is made the active adapter. Sub classes should do any initialization that they need done here.- Overrides:
init
in classMapMouseAdapter
-
abort
public void abort()Description copied from class:MapMouseAdapter
called when this MouseAdapter is made no longer the active adapter. Sub classes should do any cleanup that they need done here.- Overrides:
abort
in classMapMouseAdapter
-
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
-
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
-
mouseClicked
Description copied from class:MapMouseAdapter
called when the mouse is clicked. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMapMouseAdapter
- Parameters:
e
- the MouseEvent
-