ptolemy.vergil.basic
Class BasicGraphFrame.DocumentationMenuItemFactory

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

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

Create a menu item that will show documentation


Constructor Summary
private BasicGraphFrame.DocumentationMenuItemFactory()
           
 
Method Summary
 javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
          Add an item to the given context menu that bring up the documentation for the given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphFrame.DocumentationMenuItemFactory

private BasicGraphFrame.DocumentationMenuItemFactory()
Method Detail

create

public javax.swing.JMenuItem create(JContextMenu menu,
                                    NamedObj object)
Add an item to the given context menu that bring up the documentation for the given object

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.