Package hec.map
Class MouseZoomAdapter
java.lang.Object
hec.map.MapMouseAdapter
hec.map.MouseZoomAdapter
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
Zoom adapter for MapCanvas.
-
Field Summary
FieldsFields 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.static ButtonGifStringsGets the Cursor that should be displayed when this mouse adapter is active.voidinit()called when this MouseAdapter is made the active adapter.voidcalled when the mouse is clicked.voidcalled when the mouse is dragged.voidcalled when the mouse is Pressed.voidcalled when the mouse is released.protected voidshiftKeyAction(boolean keyDown) Methods inherited from class hec.map.MapMouseAdapter
getWorldPt, getWorldPt, mouseEntered, mouseExited, mouseMoved, pressedButton1, pressedButton2, pressedButton3
-
Field Details
-
ZOOM_CURSOR
- See Also:
-
-
Constructor Details
-
MouseZoomAdapter
-
-
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
-
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
-
shiftKeyAction
protected void shiftKeyAction(boolean keyDown) - Parameters:
keyDown-
-
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
-
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
-
getCursor
Description copied from class:MapMouseAdapterGets the Cursor that should be displayed when this mouse adapter is active. By default it returnsjava.awt.Cursor.getDefaultCursor()- Overrides:
getCursorin classMapMouseAdapter- Returns:
- the Cursor to use for this adapter
-
buildDefaultButtonGifStrings
-