diva.gui.toolbox
Interface MenuFactory
- All Known Implementing Classes:
- BasicGraphController.SchematicContextMenuFactory, PtolemyMenuFactory
public interface MenuFactory
A factory for popup menus. Use this class in conjunction with
a MenuCreator to implement context sensitive menus.
- Version:
- $Id: MenuFactory.java 38798 2005-07-08 20:00:01Z cxh $
- Author:
- Steve Neuendorffer
create
JContextMenu create(Figure figure)
- Create an instance of the menu associated with this factory.
If no menu should be displayed, then return null.
- Parameters:
figure
- The figure for which to create the menu.