|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.BasicNodeController
ptolemy.vergil.basic.LocatableNodeController
ptolemy.vergil.basic.NamedObjController
ptolemy.vergil.basic.ParameterizedNodeController
ptolemy.vergil.basic.IconController
ptolemy.vergil.kernel.AttributeController
ptolemy.vergil.actor.ActorController
public abstract class ActorController
This class provides interaction with nodes that represent Ptolemy II entities. It provides a double click binding and context menu entry to edit the parameters of the node ("Configure"), a command to get documentation, and a command to open an actor. 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 and to configure its ports. In addition, a layout algorithm is applied so that the figures for ports are automatically placed on the sides of the figure for the entity.
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
Red (johnr) |
Red (eal) |
Nested Class Summary | |
---|---|
class |
ActorController.EntityLayout
This layout algorithm is responsible for laying out the ports within an entity. |
static class |
ActorController.ListenToActorAction
An action to listen to debug messages in the actor. |
private class |
ActorController.LookInsideAction
An action to open a composite. |
private class |
ActorController.OpenInstanceAction
An action to open an instance. |
private class |
ActorController.SaveInLibraryAction
An action to save this actor in the library. |
Nested classes/interfaces inherited from class ptolemy.vergil.kernel.AttributeController |
---|
AttributeController.Access |
Nested classes/interfaces inherited from class ptolemy.vergil.basic.IconController |
---|
IconController.IconRenderer |
Field Summary | |
---|---|
protected AttributeController.Access |
_access
The access level defined in the constructor. |
private BreakpointDialogFactory |
_breakpointDialogFactory
|
private ConfigureUnitsAction |
_configureUnitsAction
|
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 ActorController.LookInsideAction |
_lookInsideAction
The action that handles opening an actor. |
protected ActorController.OpenInstanceAction |
_openInstanceAction
The action that handles opening an instance. |
private PortDialogAction |
_portDialogAction
|
private static java.awt.Font |
_portLabelFont
|
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. |
Fields inherited from class ptolemy.vergil.kernel.AttributeController |
---|
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL |
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController |
---|
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory |
Fields inherited from class ptolemy.vergil.basic.NamedObjController |
---|
_configuration |
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController |
---|
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
private void |
_createAppearanceSubmenu()
Create an Appearance submenu. |
private LabelFigure |
_createPortLabelFigure(java.lang.String string,
java.awt.Font font,
double x,
double y,
int direction)
|
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. |
Methods inherited from class ptolemy.vergil.basic.ParameterizedNodeController |
---|
getConfigureMenuFactory |
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController |
---|
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _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 |
---|
protected AttributeController.Access _access
protected EditIconAction _editIconAction
protected RotateOrFlipPorts _flipPortsHorizontal
protected RotateOrFlipPorts _flipPortsVertical
protected ActorController.LookInsideAction _lookInsideAction
protected ActorController.OpenInstanceAction _openInstanceAction
protected RemoveIconAction _removeIconAction
protected RotateOrFlipPorts _rotatePortsClockwise
protected RotateOrFlipPorts _rotatePortsCounterclockwise
private BreakpointDialogFactory _breakpointDialogFactory
private ConfigureUnitsAction _configureUnitsAction
private PortDialogAction _portDialogAction
private static java.awt.Font _portLabelFont
Constructor Detail |
---|
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.Method Detail |
---|
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
private LabelFigure _createPortLabelFigure(java.lang.String string, java.awt.Font font, double x, double y, int direction)
private void _createAppearanceSubmenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |