ptolemy.vergil.kernel
Class AttributeController

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
All Implemented Interfaces:
NodeController
Direct Known Subclasses:
ActorController, ExternalIOPortController, IOPortController, ResizableAttributeControllerFactory.ResizeAttributeController, StateController

public class AttributeController
extends IconController

This class provides interaction with nodes that represent Ptolemy II attributes. It provides a double click binding and context menu entry to edit the parameters of the node ("Configure") and a command to get documentation. It can have one of two access levels, FULL or PARTIAL. If the access level is FULL, the the context menu also contains a command to rename the node.

Since:
Ptolemy II 2.0
Version:
$Id: AttributeController.java,v 1.14 2004/04/13 03:51:32 cxh Exp $
Author:
Steve Neuendorffer and Edward A. Lee
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
protected static class AttributeController.Access
          A static enumerator for constructor arguments.
 
Nested classes inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
 
Nested classes inherited from class ptolemy.vergil.basic.NamedObjController
NamedObjController.GetDocumentationAction
 
Field Summary
static AttributeController.Access FULL
          Indicator to give full access to the attribute.
static AttributeController.Access PARTIAL
          Indicator to give partial access to the attribute.
 
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
AttributeController(GraphController controller)
          Create an attribute controller associated with the specified graph controller.
AttributeController(GraphController controller, AttributeController.Access access)
          Create an attribute controller associated with the specified graph controller.
 
Methods inherited from class ptolemy.vergil.basic.NamedObjController
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

FULL

public static AttributeController.Access FULL
Indicator to give full access to the attribute.


PARTIAL

public static AttributeController.Access PARTIAL
Indicator to give partial access to the attribute.

Constructor Detail

AttributeController

public AttributeController(GraphController controller)
Create an attribute controller associated with the specified graph controller. The attribute controller is given full access.

Parameters:
controller - The associated graph controller.

AttributeController

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

Parameters:
controller - The associated graph controller.
access - The access level.