public interface GraphContextMenuItem extends ContextMenuItemManipulator
ServiceProvider annotations.
Interface from providing graph context menu items as services.
All context menu items are able to:
Used for different manipulators such as NodesManipulator, EdgesManipulator and GeneralActionsManipulator.
The only methods that are called before setting up an item with the data are getSubItems, getType and getPosition. This way, the other methods behaviour can depend on the data that has been setup before
getSubItems will be called before and after setup. Take care when the
nodes are null!
To provide a context menu item, a class has to implement this interface and
have a @ServiceProvider annotation
| Modifier and Type | Method and Description |
|---|---|
void |
setup(org.gephi.graph.api.Graph graph,
org.gephi.graph.api.Node[] nodes)
Prepare nodes for this item.
|
getMnemonicKey, getSubItems, isAvailablecanExecute, execute, getDescription, getIcon, getName, getPosition, getType, getUICopyright © 2007–2017. All rights reserved.