org.geotools.swing.action
Class ResetAction

Object
  extended by AbstractAction
      extended by MapAction
          extended by ResetAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ResetAction
extends MapAction

An action to reset a map pane display to its full extent.

Since:
2.6
Author:
Michael Bedward
See Also:
Serialized Form

Field Summary
static String ICON_IMAGE
          Icon for the control
static String TOOL_NAME
          Name for this tool
static String TOOL_TIP
          Tool tip text
 
Fields inherited from class AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
ResetAction(MapPane mapPane)
          Constructor.
ResetAction(MapPane mapPane, boolean showToolName)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent ev)
          Called when the control is activated.
 
Methods inherited from class MapAction
getMapPane, init
 
Methods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOL_NAME

public static final String TOOL_NAME
Name for this tool


TOOL_TIP

public static final String TOOL_TIP
Tool tip text


ICON_IMAGE

public static final String ICON_IMAGE
Icon for the control

See Also:
Constant Field Values
Constructor Detail

ResetAction

public ResetAction(MapPane mapPane)
Constructor. The associated control will be labelled with an icon.

Parameters:
mapPane - the map pane being serviced by this action

ResetAction

public ResetAction(MapPane mapPane,
                   boolean showToolName)
Constructor. The associated control will be labelled with an icon and, optionally, the tool name.

Parameters:
mapPane - the map pane being serviced by this action
showToolName - set to true for the control to display the tool name
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ev)
Called when the control is activated. Calls the map pane to reset the display

Parameters:
ev - the event (not used)


Copyright © 1996-2014 Geotools. All Rights Reserved.