graphlab.plugins.main.rightclick
Class PopupMenuHandler
java.lang.Object
graphlab.platform.core.AbstractAction
graphlab.plugins.main.rightclick.PopupMenuHandler
- All Implemented Interfaces:
- Action, Listener
public class PopupMenuHandler
- extends AbstractAction
- Author:
- azin azadi
Method Summary |
void |
performAction(java.lang.String eventName,
java.lang.Object value)
like Action |
static void |
registerEdgePopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)
|
static void |
registerGraphPopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)
registers a popup menu that will be shown on each graph that assigned to Graph.name in blackboard (after the assignment) |
static void |
registerVertexPopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopupMenuHandler
public PopupMenuHandler(BlackBoard bb)
- constructor
- Parameters:
bb
- the blackboard of the action
performAction
public void performAction(java.lang.String eventName,
java.lang.Object value)
- Description copied from class:
AbstractAction
- like Action
- Specified by:
performAction
in interface Action
- Specified by:
performAction
in class AbstractAction
registerGraphPopupMenu
public static void registerGraphPopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)
- registers a popup menu that will be shown on each graph that assigned to Graph.name in blackboard (after the assignment)
- Parameters:
id
- the string shown on mnuindex
- place of itn
- this action will be enabled(in it's group) and then the performJob will be called
registerVertexPopupMenu
public static void registerVertexPopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)
registerEdgePopupMenu
public static void registerEdgePopupMenu(java.lang.String id,
int index,
AbstractAction n,
boolean forceEnable)