public class ToolCommand extends SelectableCommand
SELECTED_ACTION_KEY
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_PLACE_FIRST, ACTION_KEY_PLACE_LAST, ACTION_KEY_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY
Constructor and Description |
---|
ToolCommand(String commandID) |
ToolCommand(String commandID,
CommandStateListener listener,
com.bc.ceres.swing.figure.Interactor interactor) |
Modifier and Type | Method and Description |
---|---|
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) |
actionPerformed, addCommandListener, configure, configure, fireActionPerformed, isSelected, removeCommandListener, setSelected
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, getPlaceFirst, getPlaceLast, 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, setPlaceFirst, setPlaceLast, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateComponentTreeUI, updateState, updateState
public ToolCommand(String commandID)
public ToolCommand(String commandID, CommandStateListener listener, com.bc.ceres.swing.figure.Interactor interactor)
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 Command
public AbstractButton createToolBarButton()
createToolBarButton
in class Command
protected Action createAction()
Command
createAction
in class SelectableCommand
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.