org.esa.beam.visat.actions.rangefinder
Class RangeFinderToolAction

java.lang.Object
  extended by org.esa.beam.framework.ui.command.Command
      extended by org.esa.beam.framework.ui.command.SelectableCommand
          extended by org.esa.beam.framework.ui.command.ToolCommand
              extended by org.esa.beam.visat.actions.ToolAction
                  extended by org.esa.beam.visat.actions.rangefinder.RangeFinderToolAction
All Implemented Interfaces:
com.bc.ceres.core.runtime.ConfigurableExtension

public class RangeFinderToolAction
extends ToolAction

This action can measure the distance covered by a path of points.

Version:
$Revision$ $Date$
Author:
Marco Peters

Field Summary
 
Fields inherited from class org.esa.beam.framework.ui.command.SelectableCommand
SELECTED_ACTION_KEY
 
Fields inherited from class org.esa.beam.framework.ui.command.Command
ACTION_KEY_CONTEXT, ACTION_KEY_LARGE_ICON, ACTION_KEY_LOCATION, ACTION_KEY_PARENT, ACTION_KEY_PLACE_AFTER, ACTION_KEY_PLACE_BEFORE, ACTION_KEY_PLACE_CONTEXT_TOP, ACTION_KEY_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY
 
Constructor Summary
RangeFinderToolAction()
           
 
Method Summary
 void updateState(CommandEvent event)
          Called when a command should update its state.
 
Methods inherited from class org.esa.beam.visat.actions.ToolAction
actionPerformed, configure
 
Methods inherited from class org.esa.beam.framework.ui.command.ToolCommand
addCommandStateListener, createAction, createMenuItem, createToolBarButton, getInteractor, removeCommandStateListener, setInteractor
 
Methods inherited from class org.esa.beam.framework.ui.command.SelectableCommand
addCommandListener, configure, fireActionPerformed, isSelected, removeCommandListener, setSelected
 
Methods inherited from class org.esa.beam.framework.ui.command.Command
addEventListener, containsContext, containsLocation, containsProperty, containsPropertyValue, createResourceKey, fireUpdateState, getAccelerator, getAction, getCommandID, getCommandUIFactory, getConfigBoolean, getConfigIcon, getConfigString, getConfigStrings, getContexts, getEventListenerList, getHelpId, getLargeIcon, getLocations, getLongDescription, getMnemonic, getParent, getPlaceAfter, getPlaceBefore, getPopupText, getProperty, getProperty, getProperty, getProperty, getResourceBoolean, getResourceIcon, getResourceString, getResourceStringArray, getResourceStrings, getShortDescription, getSmallIcon, getSortChildren, getText, getValue, isEnabled, isPlaceAtContextTop, isSeparatorAfter, isSeparatorBefore, removeEventListener, setAccelerator, setCommandID, setCommandUIFactory, setContexts, setEnabled, setHelpId, setLargeIcon, setLocations, setLongDescription, setMnemonic, setParent, setPlaceAfter, setPlaceAtContextTop, setPlaceBefore, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateComponentTreeUI, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeFinderToolAction

public RangeFinderToolAction()
Method Detail

updateState

public void updateState(CommandEvent event)
Description copied from class: Command
Called when a command should update its state.

This method can contain some code which analyzes the underlying element and makes a decision whether this item or group should be made visible/invisible or enabled/disabled etc.

Overrides:
updateState in class ToolAction
Parameters:
event - the command event


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.