Package hec.map.streamAlignment
Class StreamAlignmentAdapter
java.lang.Object
hec.map.MapMouseAdapter
hec.map.streamAlignment.StreamAlignmentAdapter
- All Implemented Interfaces:
KeyListener,MouseListener,MouseMotionListener,EventListener
public class StreamAlignmentAdapter
extends MapMouseAdapter
implements MouseListener, MouseMotionListener, KeyListener
Mouse adapter for the stream alignment.
- See Also:
-
Field Summary
Fields inherited from class hec.map.MapMouseAdapter
_mapCanvas, _mapPanel, _strbuf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()called when this MouseAdapter is made no longer the active adapter.protected voidvoidinit()called when this MouseAdapter is made the active adapter.voidvoidvoidvoidcalled when the mouse is clicked.voidcalled when the mouse is dragged.voidcalled when the mouse is Pressed.voidcalled when the mouse is Pressed.voidcalled when the mouse is released.Methods inherited from class hec.map.MapMouseAdapter
buildDefaultButtonGifStrings, getCursor, getWorldPt, getWorldPt, mouseEntered, mouseExited, pressedButton1, pressedButton2, pressedButton3Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
-
Constructor Details
-
StreamAlignmentAdapter
-
-
Method Details
-
init
public void init()Description copied from class:MapMouseAdaptercalled when this MouseAdapter is made the active adapter. Sub classes should do any initialization that they need done here.- Overrides:
initin classMapMouseAdapter
-
escapeKeyAction
protected void escapeKeyAction() -
abort
public void abort()Description copied from class:MapMouseAdaptercalled when this MouseAdapter is made no longer the active adapter. Sub classes should do any cleanup that they need done here.- Overrides:
abortin classMapMouseAdapter
-
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
-
mousePressed
Description copied from class:MapMouseAdaptercalled when the mouse is Pressed. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMapMouseAdapter- Parameters:
e- the MouseEvent
-
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
-
mouseClicked
Description copied from class:MapMouseAdaptercalled when the mouse is clicked. This method is expected to be overridden by subclasses that are interested in this event.- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMapMouseAdapter- Parameters:
e- the MouseEvent
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-