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
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
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.
|
String |
getModeHelpText() |
void |
selectionEnded(Rectangle r,
MouseEvent e)
Zoom to the rectangle on the map.
|
actionPerformed, layerIsSupported, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateStatusLine
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
private final SelectionManager selectionManager
public ZoomAction(MapFrame mapFrame)
mapFrame
- The MapFrame, whose zoom mode should be enabled.public void selectionEnded(Rectangle r, MouseEvent e)
selectionEnded
in interface SelectionManager.SelectionEnded
r
- The rectangle that is currently the selection.e
- The mouse event.InputEvent.getModifiersEx()
public void enterMode()
MapMode
public void exitMode()
MapMode
public String getModeHelpText()
getModeHelpText
in class MapMode