org.geotools.swt.action
Class MapAction

Object
  extended by EventManager
      extended by AbstractAction
          extended by Action
              extended by MapAction
All Implemented Interfaces:
IAction
Direct Known Subclasses:
DrawShapeAction, InfoAction, OpenGeotiffAction, OpenShapefileAction, PanAction, ResetAction, ZoomInAction, ZoomOutAction

public abstract class MapAction
extends Action

Base class for map pane actions.

Since:
2.7
Author:
Andrea Antonello (www.hydrologis.com)

Field Summary
protected  SwtMapPane mapPane
           
 
Fields inherited from interface IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
MapAction(String toolName, String toolTip, Image image)
           
 
Method Summary
 SwtMapPane getMapPane()
          Getter for the current map pane.
abstract  void run()
           
 void setMapPane(SwtMapPane mapPane)
          Set the right map pane to the action.
 
Methods inherited from class Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface IAction
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

mapPane

protected SwtMapPane mapPane
Constructor Detail

MapAction

public MapAction(String toolName,
                 String toolTip,
                 Image image)
Method Detail

run

public abstract void run()
Specified by:
run in interface IAction
Overrides:
run in class Action

setMapPane

public void setMapPane(SwtMapPane mapPane)
Set the right map pane to the action.

Parameters:
mapPane - the map pane to use.

getMapPane

public SwtMapPane getMapPane()
Getter for the current map pane.

Returns:
the current map pane.


Copyright © 1996-2014 Geotools. All Rights Reserved.