|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction cytoscape.util.CytoscapeAction
public abstract class CytoscapeAction
Field Summary | |
---|---|
protected boolean |
acceleratorSet
|
protected String |
consoleName
|
protected int |
keyCode
|
protected int |
keyModifiers
|
protected Integer |
menuIndex
|
protected String |
preferredButtonGroup
|
protected String |
preferredMenu
|
protected boolean |
useCheckBoxMenuItem
|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
CytoscapeAction()
|
|
CytoscapeAction(String name)
Creates a new CytoscapeAction object. |
|
CytoscapeAction(String name,
Icon icon)
Creates a new CytoscapeAction object. |
Method Summary | |
---|---|
String |
actionHelp()
DOCUMENT ME! |
abstract void |
actionPerformed(ActionEvent e)
DOCUMENT ME! |
Object |
clone()
The default clone() implementation delegates to the create() method of DataTypeUtilities.getDataTypeFactory( this.getClass() ). |
String[] |
completions()
DOCUMENT ME! |
protected void |
enableForNetwork()
Enable the action if the current network exists and is not null. |
protected void |
enableForNetworkAndView()
Enable the action if the current network and view exist and are not null. |
static List |
getActionList()
DOCUMENT ME! |
int |
getKeyCode()
DOCUMENT ME! |
int |
getKeyModifiers()
DOCUMENT ME! |
String |
getName()
DOCUMENT ME! |
String |
getPreferredButtonGroup()
This method returns a ButtonGroup specification string. |
String |
getPreferredMenu()
This method returns a Menu specification string. |
Integer |
getPrefferedIndex()
DOCUMENT ME! |
protected void |
initialize()
Initialization method called by all constructors. |
boolean |
isAccelerated()
DOCUMENT ME! |
boolean |
isInMenuBar()
By default all CytoscapeActions wish to be included in CommunityMenuBars, but you may override if you wish. |
boolean |
isInToolBar()
By default no CytoscapeActions wish to be included in CommunityToolBars, but you may override if you wish. |
void |
menuCanceled(MenuEvent e)
This method can be used at your discretion, but otherwise does nothing. |
void |
menuDeselected(MenuEvent e)
This method can be used at your discretion, but otherwise does nothing. |
void |
menuSelected(MenuEvent e)
This method can be overridden by individual actions to set the state of menu items based on whatever unique circumstances that menu option cares about. |
void |
setAcceleratorCombo(int key_code,
int key_mods)
DOCUMENT ME! |
void |
setName(String name)
DOCUMENT ME! |
void |
setPreferredButtonGroup(String new_preferred)
|
void |
setPreferredIndex(int index)
DOCUMENT ME! |
void |
setPreferredMenu(String new_preferred)
|
void |
takeArgs(String[] argv)
DOCUMENT ME! |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String preferredMenu
protected String preferredButtonGroup
protected Integer menuIndex
protected boolean acceleratorSet
protected int keyModifiers
protected int keyCode
protected String consoleName
protected boolean useCheckBoxMenuItem
Constructor Detail |
---|
public CytoscapeAction()
public CytoscapeAction(String name)
name
- DOCUMENT ME!public CytoscapeAction(String name, Icon icon)
name
- DOCUMENT ME!icon
- DOCUMENT ME!Method Detail |
---|
public static List getActionList()
public void setName(String name)
name
- DOCUMENT ME!public String getName()
public String actionHelp()
public String[] completions()
public void takeArgs(String[] argv)
argv
- DOCUMENT ME!public abstract void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- DOCUMENT ME!protected void initialize()
public Object clone()
clone
in class AbstractAction
public boolean isInMenuBar()
#getPrefferedMenu();
public boolean isInToolBar()
#getPrefferedButtonGroup();
public void setPreferredIndex(int index)
index
- DOCUMENT ME!public Integer getPrefferedIndex()
public void setAcceleratorCombo(int key_code, int key_mods)
key_code
- DOCUMENT ME!key_mods
- DOCUMENT ME!public boolean isAccelerated()
public int getKeyCode()
public int getKeyModifiers()
public String getPreferredMenu()
#inMenuBar()
public void setPreferredMenu(String new_preferred)
public String getPreferredButtonGroup()
#inToolBar()
public void setPreferredButtonGroup(String new_preferred)
public void menuCanceled(MenuEvent e)
menuCanceled
in interface MenuListener
e
- The triggering event.public void menuDeselected(MenuEvent e)
menuDeselected
in interface MenuListener
e
- The triggering event.public void menuSelected(MenuEvent e)
menuSelected
in interface MenuListener
e
- The triggering event.protected void enableForNetwork()
protected void enableForNetworkAndView()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |