public abstract class ActorController extends AttributeController
NOTE: This class is abstract because it is missing the code for laying out ports. Use the concrete subclasses ActorInstanceController or ClassDefinitionController instead.
ActorInstanceController
,
ClassDefinitionController
Modifier and Type | Class and Description |
---|---|
static class |
ActorController.ListenToActorAction
An action to listen to debug messages in the actor.
|
AttributeController.Access
IconController.IconRenderer
Modifier and Type | Field and Description |
---|---|
protected AttributeController.Access |
_access
The access level defined in the constructor.
|
protected EditIconAction |
_editIconAction
The action that handles edit custom icon.
|
protected RotateOrFlipPorts |
_flipPortsHorizontal
An action that handles flipping the ports horizontally.
|
protected RotateOrFlipPorts |
_flipPortsVertical
An action that handles flipping the ports vertically.
|
protected LookInsideAction |
_lookInsideAction
The action that handles opening an actor.
|
protected ptolemy.vergil.actor.ActorController.OpenInstanceAction |
_openInstanceAction
The action that handles opening an instance.
|
protected RemoveIconAction |
_removeIconAction
The action that handles removing a custom icon.
|
protected RotateOrFlipPorts |
_rotatePortsClockwise
An action that handles rotating the ports by 90 degrees.
|
protected RotateOrFlipPorts |
_rotatePortsCounterclockwise
An action that handles rotating the ports by 90 degrees.
|
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
_configuration
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
Constructor and Description |
---|
ActorController(GraphController controller)
Create an entity controller associated with the specified graph
controller with full access.
|
ActorController(GraphController controller,
AttributeController.Access access)
Create an entity controller associated with the specified graph
controller.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_getComponentType()
Get the class label of the component.
|
void |
addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.
|
void |
addMenuItemFactory(MenuItemFactory menuItemFactory)
If access is FULL, then add the jni.ArgumentDailogFactory() to
_menuFactory.
|
void |
setConfiguration(Configuration configuration)
Set the configuration.
|
_moveToFirstDescription, _moveToLastDescription, renderDecoratorHighlight, renderHighlight
getConfigureMenuFactory
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
protected AttributeController.Access _access
protected EditIconAction _editIconAction
protected RotateOrFlipPorts _flipPortsHorizontal
protected RotateOrFlipPorts _flipPortsVertical
protected LookInsideAction _lookInsideAction
protected ptolemy.vergil.actor.ActorController.OpenInstanceAction _openInstanceAction
protected RemoveIconAction _removeIconAction
protected RotateOrFlipPorts _rotatePortsClockwise
protected RotateOrFlipPorts _rotatePortsCounterclockwise
public ActorController(GraphController controller)
controller
- The associated graph controller.public ActorController(GraphController controller, AttributeController.Access access)
controller
- The associated graph controller.access
- The access level.public void addMenuItemFactory(MenuItemFactory menuItemFactory)
menuItemFactory
- The MenuItemFactory to be added.public void addHotKeys(JGraph jgraph)
addHotKeys
in class AttributeController
jgraph
- The JGraph to which hot keys are to be added.public void setConfiguration(Configuration configuration)
setConfiguration
in class AttributeController
configuration
- The configuration.protected java.lang.String _getComponentType()
_getComponentType
in class AttributeController