Package org.geotools.swing.action
Class ZoomInAction
- Object
-
- AbstractAction
-
- MapAction
-
- ZoomInAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class ZoomInAction extends MapAction
An action for connect a control (probably a JButton) to the ZoomInTool for zooming the map with mouse clicks or drags.- Since:
- 2.6
- Author:
- Michael Bedward
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZoomInAction(MapPane mapPane)
Constructor.ZoomInAction(MapPane mapPane, boolean showToolName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
ZoomInAction
public ZoomInAction(MapPane mapPane)
Constructor. The associated control will be labelled with an icon.- Parameters:
mapPane
- the map pane being serviced by this action
-
ZoomInAction
public ZoomInAction(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 actionshowToolName
- set to true for the control to display the tool name
-
-