ptolemy.vergil.basic
Class BasicGraphFrame.OpenLibraryMenuItemFactory

java.lang.Object
  extended by ptolemy.vergil.basic.BasicGraphFrame.OpenLibraryMenuItemFactory
All Implemented Interfaces:
MenuItemFactory
Enclosing class:
BasicGraphFrame

private class BasicGraphFrame.OpenLibraryMenuItemFactory
extends java.lang.Object
implements MenuItemFactory

Create a menu item that will open a library in editable form.


Constructor Summary
private BasicGraphFrame.OpenLibraryMenuItemFactory()
           
 
Method Summary
 javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
          Add an item to the given context menu that will open the given object as an editable model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphFrame.OpenLibraryMenuItemFactory

private BasicGraphFrame.OpenLibraryMenuItemFactory()
Method Detail

create

public javax.swing.JMenuItem create(JContextMenu menu,
                                    NamedObj object)
Add an item to the given context menu that will open the given object as an editable model.

Specified by:
create in interface MenuItemFactory
Parameters:
menu - The context menu to add to.
object - The object that the menu item command will operate on.
Returns:
A menu item, or null to decline to provide a menu item.