graphlab.gui.plugins.main.rightclick
Class PopupMenuHandler

java.lang.Object
  extended by graphlab.main.core.action.AbstractAction
      extended by graphlab.gui.plugins.main.rightclick.PopupMenuHandler
All Implemented Interfaces:
Action, Notifiable

public class PopupMenuHandler
extends AbstractAction

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.main.core.action.AbstractAction
listeningEvents
 
Constructor Summary
PopupMenuHandler(BlackBoard bb)
          constructor
 
Method Summary
 void performJob(java.lang.String name)
          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 graphlab.main.core.action.AbstractAction
disable, doJob, enable, getBlackBoard, isEnable, setBlackBoard
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMenuHandler

public PopupMenuHandler(BlackBoard bb)
constructor

Parameters:
bb - the BlackBoard of the action
Method Detail

performJob

public void performJob(java.lang.String name)
Description copied from class: AbstractAction
like Action

Specified by:
performJob 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 mnu
index - place of it
n - 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)