Package org.geotools.swing.action
Class PanAction
Object
AbstractAction
MapAction
PanAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
An action for connect a control (probably a JButton) to the PanTool for panning the map with mouse drags.
- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
PanAction
Constructor. The associated control will be labelled with an icon.- Parameters:
mapPane
- the map pane being serviced by this action
-
PanAction
Constructor. The associated control will be labelled with an icon and, optionally, the tool name.- Parameters:
mapPane
- the map pane being serviced by this actionshowToolName
- set to true for the control to display the tool name
-
-
Method Details
-
actionPerformed
Called when the associated control is activated. Leads to the map pane's cursor tool being set to a PanTool object- Parameters:
ev
- the event (not used)
-