be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents
Class PopupMenuFactory

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.PopupMenuFactory

public class PopupMenuFactory
extends java.lang.Object

Factory to handle creation of popup menus. Popup menus can bve created for node, link, single lsp, multiple lsps or default.

Creation date: 15/01/2008

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
PopupMenuFactory()
           
 
Method Summary
static javax.swing.JPopupMenu createDefaultPopupMenu()
          This method create a default popupmenu
static javax.swing.JPopupMenu createLinkPopupMenu(Link link)
          Creates a popupmenu for the case the mouse was clicked on a Link.
static javax.swing.JPopupMenu createLspPopupMenu(Lsp lsp)
          Creates a popup menu for a single lsp
static javax.swing.JPopupMenu createLspPopupMenu(Lsp[] lsps)
          Creates a popup menu for multiple lsps
static javax.swing.JPopupMenu createNodePopupMenu(Node node)
          Creates a popupmenu for the case the mouse was clicked on a link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMenuFactory

public PopupMenuFactory()
Method Detail

createLinkPopupMenu

public static javax.swing.JPopupMenu createLinkPopupMenu(Link link)
Creates a popupmenu for the case the mouse was clicked on a Link.

Parameters:
link - the link on which the mouse was clicked

createNodePopupMenu

public static javax.swing.JPopupMenu createNodePopupMenu(Node node)
Creates a popupmenu for the case the mouse was clicked on a link.

Parameters:
node - the node on which the mouse was clicked

createLspPopupMenu

public static javax.swing.JPopupMenu createLspPopupMenu(Lsp lsp)
Creates a popup menu for a single lsp

Parameters:
lsp -
Returns:

createLspPopupMenu

public static javax.swing.JPopupMenu createLspPopupMenu(Lsp[] lsps)
Creates a popup menu for multiple lsps

Parameters:
lsps -
Returns:

createDefaultPopupMenu

public static javax.swing.JPopupMenu createDefaultPopupMenu()
This method create a default popupmenu



Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.