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.ListenToActorAction
AttributeController.Access
IconController.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, renderHighlight
getConfigureMenuFactory
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
protected 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 ActorController
jgraph
- The JGraph to which hot keys are to be added.protected Figure _renderNode(java.lang.Object node)
_renderNode
in class LocatableNodeController
node
- The node to render.