public class ZoomAction extends MapMode implements SelectionManager.SelectionEnded
| Modifier and Type | Field and Description |
|---|---|
private SelectionManager |
selectionManager
Manager that manages the selection rectangle with the aspect ratio of the
MapView.
|
sc| Constructor and Description |
|---|
ZoomAction(MapFrame mapFrame)
Construct a ZoomAction without a label.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterMode()
Makes this map mode active.
|
void |
exitMode()
Makes this map mode inactive.
|
java.lang.String |
getModeHelpText() |
void |
selectionEnded(java.awt.Rectangle r,
java.awt.event.MouseEvent e)
Zoom to the rectangle on the map.
|
actionPerformed, layerIsSupported, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateStatusLinedestroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, removePropertyChangeListenerprivate final SelectionManager selectionManager
public ZoomAction(MapFrame mapFrame)
mapFrame - The MapFrame, whose zoom mode should be enabled.public void selectionEnded(java.awt.Rectangle r, java.awt.event.MouseEvent e)
selectionEnded in interface SelectionManager.SelectionEndedr - The rectangle that is currently the selection.e - The mouse event.InputEvent.getModifiersEx()public void enterMode()
MapModepublic void exitMode()
MapModepublic java.lang.String getModeHelpText()
getModeHelpText in class MapMode