Package org.geotools.swing.action
Class ResetAction
Object
AbstractAction
MapAction
ResetAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
An action to reset a map pane display to its full extent.
- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Icon for the controlstatic final String
Name for this toolstatic final String
Tool tip textFields 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
ConstructorsConstructorDescriptionResetAction
(MapPane mapPane) Constructor.ResetAction
(MapPane mapPane, boolean showToolName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
TOOL_NAME
Name for this tool -
TOOL_TIP
Tool tip text -
ICON_IMAGE
Icon for the control- See Also:
-
-
Constructor Details
-
ResetAction
Constructor. The associated control will be labelled with an icon.- Parameters:
mapPane
- the map pane being serviced by this action
-
ResetAction
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 control is activated. Calls the map pane to reset the display- Parameters:
ev
- the event (not used)
-