Package 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$
- Author:
- Steve Neuendorffer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JContextMenu
create(Figure figure)
Create an instance of the menu associated with this factory.
-
-
-
Method Detail
-
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.
-
-