public abstract class MapAction extends AbstractAction
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 |
---|
MapAction() |
Modifier and Type | Method and Description |
---|---|
MapPane |
getMapPane()
Get the map pane that this Action is working with
|
protected void |
init(MapPane mapPane,
String toolName,
String toolTip,
String iconImage)
Called by sub-classes to set the map pane field and initialize the control action properties
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
protected void init(MapPane mapPane, String toolName, String toolTip, String iconImage)
mapPane
- the map pane that this action is working withtoolName
- short (single word) tool name; may be null
toolTip
- brief tool description for GUI tool tipiconImage
- path to the icon to display on the controlpublic MapPane getMapPane()
Copyright © 1996–2019 Geotools. All rights reserved.