org.geotools.swing.action
Class MapAction
Object
AbstractAction
MapAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses:
- InfoAction, NoToolAction, PanAction, ResetAction, ZoomInAction, ZoomOutAction
public abstract class MapAction
- extends AbstractAction
Base class for map pane actions; just provides a common initializing method and
a reference to the map pane being serviced.
- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
- Serialized Form
Fields inherited from interface Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
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 |
MapAction
public MapAction()
init
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
- Parameters:
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 control
getMapPane
public MapPane getMapPane()
- Get the map pane that this Action is working with
- Returns:
- the map pane
Copyright © 1996-2014 Geotools. All Rights Reserved.