|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.ui.command.Command
org.esa.beam.framework.ui.command.SelectableCommand
org.esa.beam.framework.ui.command.ToolCommand
public class ToolCommand
A command which activates a tool.
| 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 | |
|---|---|
ToolCommand(String commandID)
|
|
ToolCommand(String commandID,
CommandStateListener listener,
com.bc.ceres.swing.figure.Interactor interactor)
|
|
| Method Summary | |
|---|---|
void |
addCommandStateListener(CommandStateListener l)
Adds a command state listener. |
protected Action |
createAction()
Creates an appropriate action instance for this command. |
JMenuItem |
createMenuItem()
Creates a menu item (a JMenuItem or JCheckBoxMenuItem instance) for this command
group. |
AbstractButton |
createToolBarButton()
Creates an appropriate tool bar button for this command. |
com.bc.ceres.swing.figure.Interactor |
getInteractor()
|
void |
removeCommandStateListener(CommandStateListener l)
Removes a command state listener. |
void |
setInteractor(com.bc.ceres.swing.figure.Interactor interactor)
|
| Methods inherited from class org.esa.beam.framework.ui.command.SelectableCommand |
|---|
actionPerformed, addCommandListener, configure, configure, fireActionPerformed, isSelected, removeCommandListener, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToolCommand(String commandID)
public ToolCommand(String commandID,
CommandStateListener listener,
com.bc.ceres.swing.figure.Interactor interactor)
| Method Detail |
|---|
public com.bc.ceres.swing.figure.Interactor getInteractor()
public final void setInteractor(com.bc.ceres.swing.figure.Interactor interactor)
public void addCommandStateListener(CommandStateListener l)
l - the command listenerpublic void removeCommandStateListener(CommandStateListener l)
l - the command listenerpublic JMenuItem createMenuItem()
JMenuItem or JCheckBoxMenuItem instance) for this command
group.
createMenuItem in class Commandpublic AbstractButton createToolBarButton()
createToolBarButton in class Commandprotected Action createAction()
Command
createAction in class SelectableCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||