diva.gui.toolbox
Interface MenuFactory
- All Known Implementing Classes:
- 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,v 1.7 2004/04/13 18:48:39 cxh Exp $
- Author:
- Steve Neuendorffer
create
public 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.