Class 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:
  • Constructor Details

    • MapAction

      public MapAction()
  • Method Details

    • 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 with
      toolName - short (single word) tool name; may be null
      toolTip - brief tool description for GUI tool tip
      iconImage - 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