public class ClassDefinitionController extends ActorController
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.
| Red (johnr) |
| Red (eal) |
ActorController.ListenToActorActionAttributeController.AccessIconController.IconRenderer| Modifier and Type | Field and Description |
|---|---|
protected ptolemy.vergil.actor.ClassDefinitionController.ConvertToInstanceAction |
_convertToInstanceAction
The action that handles converting a class to an instance.
|
protected ptolemy.vergil.actor.ClassDefinitionController.CreateInstanceAction |
_createInstanceAction
The action that handles creating an instance from a class.
|
protected ptolemy.vergil.actor.ClassDefinitionController.CreateSubclassAction |
_createSubclassAction
The action that handles creating a subclass from a class.
|
_access, _editIconAction, _flipPortsHorizontal, _flipPortsVertical, _lookInsideAction, _openInstanceAction, _removeIconAction, _rotatePortsClockwise, _rotatePortsCounterclockwise_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL_configureAction, _configureMenuFactory, _menuCreator, _menuFactory_configuration_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR| Constructor and Description |
|---|
ClassDefinitionController(GraphController controller)
Create an actor instance controller associated with the
specified graph controller with full access.
|
ClassDefinitionController(GraphController controller,
AttributeController.Access access)
Create a controller associated with the specified graph
controller with the specified access.
|
| Modifier and Type | Method and Description |
|---|---|
protected Figure |
_renderNode(java.lang.Object node)
Draw the node at its location.
|
void |
addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.
|
_getComponentType, addMenuItemFactory, setConfiguration_moveToFirstDescription, _moveToLastDescription, renderDecoratorHighlight, renderHighlightgetConfigureMenuFactory_drawChildren, _getCompositeFigure, _hide, _isPropertySet, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolutionaddNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRendererprotected ptolemy.vergil.actor.ClassDefinitionController.ConvertToInstanceAction _convertToInstanceAction
protected ptolemy.vergil.actor.ClassDefinitionController.CreateInstanceAction _createInstanceAction
protected ptolemy.vergil.actor.ClassDefinitionController.CreateSubclassAction _createSubclassAction
public ClassDefinitionController(GraphController controller)
controller - The associated graph controller.public ClassDefinitionController(GraphController controller, AttributeController.Access access)
controller - The associated graph controller.access - The access level, one of FULL or PARTIAL.public void addHotKeys(JGraph jgraph)
addHotKeys in class ActorControllerjgraph - The JGraph to which hot keys are to be added.protected Figure _renderNode(java.lang.Object node)
_renderNode in class LocatableNodeControllernode - The node to render.