org.geotools.swing.action
Class ZoomOutAction

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

public class ZoomOutAction
extends MapAction

An action for connect a control (probably a JButton) to the ZoomOutTool for ZoomOutg the map with mouse clicks or drags.

Since:
2.6
Author:
Michael Bedward
See Also:
Serialized Form
Module:
modules/unsupported/swing (gt-swing.jar)

Field Summary
 
Fields inherited from class AbstractAction
changeSupport, enabled
 
Fields inherited from interface Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ZoomOutAction(JMapPane mapPane)
          Constructor.
ZoomOutAction(JMapPane mapPane, boolean showToolName)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent ev)
          Called when the associated 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
 

Constructor Detail

ZoomOutAction

public ZoomOutAction(JMapPane mapPane)
Constructor. The associated control will be labelled with an icon.

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

ZoomOutAction

public ZoomOutAction(JMapPane 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 associated control is activated. Leads to the map pane's cursor tool being set to a new ZoomOutTool object

Parameters:
ev - the event (not used)


Copyright © 1996-2009 Geotools. All Rights Reserved.