public class KeplerSchematicContextMenuFactory extends KeplerContextMenuFactory
Modifier and Type | Class and Description |
---|---|
static class |
KeplerSchematicContextMenuFactory.Factory
A factory that creates the KeplerSchematicContextMenuFactory - used by
the config
|
_menuBaseName
Constructor and Description |
---|
KeplerSchematicContextMenuFactory(diva.graph.GraphController controller)
Create a new context menu factory associated with the specified
controller.
|
Modifier and Type | Method and Description |
---|---|
protected NamedObj |
_getObjectFromFigure(diva.canvas.Figure source)
Return the Ptolemy object that the given figure represents.
|
protected java.util.Map |
getOriginalMenuItemsMap(NamedObj object,
boolean isWorkflow)
OVERRIDES PARENT CLASS TO SET isWorkflow TO TRUE
get Map of name/value pairs containing menu paths of original PTII
context- menu items, and their correspondign Action objects
|
create, getParent
addMenuItemFactory, getController, menuItemFactoryList, removeMenuItemFactory
public KeplerSchematicContextMenuFactory(diva.graph.GraphController controller)
controller
- The controller.protected java.util.Map getOriginalMenuItemsMap(NamedObj object, boolean isWorkflow)
getOriginalMenuItemsMap
in class KeplerContextMenuFactory
object
- NamedObjisWorkflow
- boolean - @todo - FIXME - this is a gnarly hack because a
workflow is actually a TypedCompositeActor, so if we just rely
in the "instanceof" checks like we do for other context menus,
this code will assume the workflow is actually an actor, and
will display the actor context menu instead of the workflow
oneprotected NamedObj _getObjectFromFigure(diva.canvas.Figure source)
PtolemyMenuFactory
_getObjectFromFigure
in class PtolemyMenuFactory
source
- FigureBasicGraphController.SchematicContextMenuFactory