public interface ContextMenuItemManipulator extends Manipulator
This interface defines a common extension for the manipulators that appear as context menu items such as NodesManipulator, EdgesManipulator and GraphContextMenuItem (from Visualization API)
NodesManipulator
Modifier and Type | Method and Description |
---|---|
Integer |
getMnemonicKey()
Optional.
|
ContextMenuItemManipulator[] |
getSubItems()
This is optional.
|
boolean |
isAvailable()
Indicates if this item has to appear in the context menu at all
|
canExecute, execute, getDescription, getIcon, getName, getPosition, getType, getUI
ContextMenuItemManipulator[] getSubItems()
This is optional. Return sub items for this menu item if desired.
If this item should contain more items, return a new instance of each sub item. If not return null and implement execute for this item.
In order to declare mnemonic keys for subitem(s), the implementation of this item must return the subitem(s) with the mnemonic even when it has not been setup. If you don't need a mnemonic, return null if the item is not setup.
Returned items have to be of the same type as the subinterface (NodesManipulator for example)
boolean isAvailable()
Integer getMnemonicKey()
KeyEvent
values or nullCopyright © 2007–2015 Gephi Consortium. All rights reserved.