public interface CyAction extends Action, MenuListener, PopupMenuListener
Module: swing-application-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>swing-application-api</artifactId> </dependency>
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
KeyStroke |
getAcceleratorKeyStroke()
Returns the accelerator KeyStroke defined for this action.
|
float |
getMenuGravity()
Returns the gravity used to place the menu item for this action.
|
String |
getName()
Returns the name of the action.
|
String |
getPreferredMenu()
This method returns a Menu specification string.
|
Map<String,String> |
getProperties()
Returns the configuration properties that were passed to the CyAction when it was created.
|
float |
getToolbarGravity()
Returns the gravity used to place this action in the toolbar.
|
default URL |
getToolTipImage()
Optional image to be displayed in the target component's tool tip.
|
boolean |
insertSeparatorAfter()
Insert a separator after this menu item.
|
boolean |
insertSeparatorBefore()
Insert a separator before this menu item.
|
boolean |
isInMenuBar()
Returns whether the action should be in the menu bar.
|
boolean |
isInToolBar()
Returns whether the action should be in the tool bar.
|
void |
setAcceleratorKeyStroke(KeyStroke ks)
was defined in AbstractCyAction, but not in this interface
|
void |
setIsInMenuBar(boolean b)
To support configurable menus and tools, setIsInMenuBar added for 3.6
|
void |
setIsInToolBar(boolean b)
To support configurable menus and tools, setIsInToolBar added for 3.6
|
void |
setMenuGravity(float f)
To support configurable menus and tools, setMenuGravity added for 3.6
|
void |
setPreferredMenu(String menu)
To support configurable menus and tools, setPreferredMenu added for 3.6
|
void |
setToolbarGravity(float f)
To support configurable menus and tools, setToolbarGravity added for 3.6
|
void |
updateEnableState()
Forces the action to update its enable state based on the criteria defined for the action.
|
boolean |
useCheckBoxMenuItem()
Returns whether or not a checkbox menu item should be used.
|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
menuCanceled, menuDeselected, menuSelected
popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible
String getName()
boolean isInMenuBar()
boolean isInToolBar()
boolean insertSeparatorBefore()
boolean insertSeparatorAfter()
float getMenuGravity()
float getToolbarGravity()
KeyStroke getAcceleratorKeyStroke()
String getPreferredMenu()
boolean useCheckBoxMenuItem()
void updateEnableState()
Map<String,String> getProperties()
void setIsInMenuBar(boolean b)
void setIsInToolBar(boolean b)
void setPreferredMenu(String menu)
void setToolbarGravity(float f)
void setMenuGravity(float f)
void setAcceleratorKeyStroke(KeyStroke ks)
default URL getToolTipImage()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.