Package ptolemy.vergil.basic
Class BasicGraphController.SchematicContextMenuFactory
- java.lang.Object
-
- ptolemy.vergil.toolbox.PtolemyMenuFactory
-
- ptolemy.vergil.basic.BasicGraphController.SchematicContextMenuFactory
-
- All Implemented Interfaces:
MenuFactory
- Enclosing class:
- BasicGraphController
public static class BasicGraphController.SchematicContextMenuFactory extends PtolemyMenuFactory
Factory for context menus.
-
-
Constructor Summary
Constructors Constructor Description SchematicContextMenuFactory(GraphController controller)
Create a new context menu factory associated with the specified controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NamedObj
_getObjectFromFigure(Figure source)
Return the Ptolemy object that the given figure represents.-
Methods inherited from class ptolemy.vergil.toolbox.PtolemyMenuFactory
addMenuItemFactory, create, getController, menuItemFactoryList, removeMenuItemFactory
-
-
-
-
Constructor Detail
-
SchematicContextMenuFactory
public SchematicContextMenuFactory(GraphController controller)
Create a new context menu factory associated with the specified controller.- Parameters:
controller
- The controller.
-
-
Method Detail
-
_getObjectFromFigure
protected NamedObj _getObjectFromFigure(Figure source)
Description copied from class:PtolemyMenuFactory
Return the Ptolemy object that the given figure represents. In this base class, we assume that the figure is attached to a a diva.graph.model object, and that object is attached to the correct ptolemy object. In many cases, this is not the case, and you will have to override this function.- Overrides:
_getObjectFromFigure
in classPtolemyMenuFactory
- Parameters:
source
- The figure.- Returns:
- The Ptolemy object that the given figure represents.
-
-