org.geotools.swt.action
Class DrawShapeAction

Object
  extended by EventManager
      extended by AbstractAction
          extended by Action
              extended by MapAction
                  extended by DrawShapeAction
All Implemented Interfaces:
EventListener, IAction, MapBoundsListener

public class DrawShapeAction
extends MapAction
implements MapBoundsListener

Action that activates the Info tool for the current map pane.

Author:
Andrea Antonello (www.hydrologis.com)

Field Summary
 
Fields inherited from class MapAction
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
DrawShapeAction()
           
 
Method Summary
 void mapBoundsChanged(MapBoundsEvent event)
          Invoked when the area of interest or the coordinate system changes.
 void run()
          Called when the associated control is activated.
 void selectionChanged(IAction action, ISelection selection)
           
 
Methods inherited from class MapAction
getMapPane, setMapPane
 
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
 

Constructor Detail

DrawShapeAction

public DrawShapeAction()
Method Detail

run

public void run()
Called when the associated control is activated. Leads to the map pane's cursor tool being set to a PanTool object

Specified by:
run in interface IAction
Specified by:
run in class MapAction
Parameters:
ev - the event (not used)

selectionChanged

public void selectionChanged(IAction action,
                             ISelection selection)

mapBoundsChanged

public void mapBoundsChanged(MapBoundsEvent event)
Description copied from interface: MapBoundsListener
Invoked when the area of interest or the coordinate system changes.

Specified by:
mapBoundsChanged in interface MapBoundsListener
Parameters:
event - The change event.


Copyright © 1996-2014 Geotools. All Rights Reserved.