|
|||||||||
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
public class AttributeController
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.
Red (johnr) |
Red (eal) |
Nested Class Summary | |
---|---|
protected static class |
AttributeController.Access
A static enumerator for constructor arguments. |
Nested classes/interfaces inherited from class ptolemy.vergil.basic.IconController |
---|
IconController.IconRenderer |
Field Summary | |
---|---|
protected MenuActionFactory |
_appearanceMenuActionFactory
The appearance menu factory. |
private GetDocumentationAction |
_getDocumentationAction
The "get documentation" action. |
protected ListenToAction |
_listenToAction
Action to listen to debug messages. |
protected RenameDialogAction |
_renameAction
Action to launch rename dialog. |
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, _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 | |
---|---|
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. |
Method Summary | |
---|---|
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 |
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 |
---|
public static final AttributeController.Access FULL
public static final AttributeController.Access PARTIAL
protected MenuActionFactory _appearanceMenuActionFactory
protected RenameDialogAction _renameAction
protected ListenToAction _listenToAction
private GetDocumentationAction _getDocumentationAction
Constructor Detail |
---|
public AttributeController(GraphController controller)
controller
- The associated graph controller.public AttributeController(GraphController controller, AttributeController.Access access)
controller
- The associated graph controller.access
- The access level.Method Detail |
---|
public void addHotKeys(JGraph jgraph)
addHotKeys
in class NamedObjController
jgraph
- The JGraph to which hot keys are to be added.public void setConfiguration(Configuration configuration)
setConfiguration
in class NamedObjController
configuration
- The configuration.protected java.lang.String _getComponentType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |