ptolemy.vergil.basic
Class BasicGraphController.SchematicContextMenuFactory

java.lang.Object
  extended by ptolemy.vergil.toolbox.PtolemyMenuFactory
      extended by 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
BasicGraphController.SchematicContextMenuFactory(GraphController controller)
          Create a new context menu factory associated with the specified controller.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphController.SchematicContextMenuFactory

public BasicGraphController.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 class PtolemyMenuFactory
Parameters:
source - The figure.
Returns:
The Ptolemy object that the given figure represents.