ptolemy.vergil.actor
Class ActorInstanceController

java.lang.Object
  extended bydiva.graph.BasicNodeController
      extended byptolemy.vergil.basic.LocatableNodeController
          extended byptolemy.vergil.basic.NamedObjController
              extended byptolemy.vergil.basic.ParameterizedNodeController
                  extended byptolemy.vergil.basic.IconController
                      extended byptolemy.vergil.kernel.AttributeController
                          extended byptolemy.vergil.actor.ActorController
                              extended byptolemy.vergil.actor.ActorInstanceController
All Implemented Interfaces:
NodeController

public class ActorInstanceController
extends ActorController

This class provides interaction with nodes that represent Ptolemy II actor instances (i.e., not classes). This extends the base class by providing a mechanism in the context menu for converting the instance into a class.

NOTE: There should be only one instance of this class associated with a given GraphController. This is because this controller listens for changes to the graph and re-renders the ports of any actor instance in the graph when the graph changes. If there is more than one instance, this rendering will be done twice, which can result in bugs like port labels appearing twice.

Since:
Ptolemy II 4.0
Version:
$Id: ActorInstanceController.java,v 1.13 2004/04/13 05:12:03 cxh Exp $
Author:
Edward A. Lee and Steve Neuendorffer
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
 
Nested classes inherited from class ptolemy.vergil.actor.ActorController
ActorController.EntityLayout, ActorController.ListenToActorAction
 
Nested classes inherited from class ptolemy.vergil.kernel.AttributeController
AttributeController.Access
 
Nested classes inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
 
Nested classes inherited from class ptolemy.vergil.basic.NamedObjController
NamedObjController.GetDocumentationAction
 
Field Summary
protected  ptolemy.vergil.actor.ActorInstanceController.ConvertToClassAction _convertToClassAction
          The action that handles creating an instance from a class.
 
Fields inherited from class ptolemy.vergil.actor.ActorController
_access, _editIconAction, _lookInsideAction, _removeIconAction
 
Fields inherited from class ptolemy.vergil.kernel.AttributeController
FULL, PARTIAL
 
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController
_configureAction, _menuCreator, _menuFactory
 
Fields inherited from class ptolemy.vergil.basic.NamedObjController
_configuration
 
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController
CLASS_ELEMENT_HIGHLIGHT_COLOR
 
Constructor Summary
ActorInstanceController(GraphController controller)
          Create an actor instance controller associated with the specified graph controller with full access.
ActorInstanceController(GraphController controller, AttributeController.Access access)
          Create an entity controller associated with the specified graph controller with the specified access.
 
Methods inherited from class ptolemy.vergil.actor.ActorController
addMenuItemFactory, setConfiguration
 
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController
_drawChildren, _hide, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
 
Methods inherited from class diva.graph.BasicNodeController
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_convertToClassAction

protected ptolemy.vergil.actor.ActorInstanceController.ConvertToClassAction _convertToClassAction
The action that handles creating an instance from a class.

Constructor Detail

ActorInstanceController

public ActorInstanceController(GraphController controller)
Create an actor instance controller associated with the specified graph controller with full access.

Parameters:
controller - The associated graph controller.

ActorInstanceController

public ActorInstanceController(GraphController controller,
                               AttributeController.Access access)
Create an entity controller associated with the specified graph controller with the specified access.

Parameters:
controller - The associated graph controller.