public class AttributeController extends IconController
Modifier and Type | Class and Description |
---|---|
protected static class |
AttributeController.Access
A static enumerator for constructor arguments.
|
IconController.IconRenderer
Modifier and Type | Field and Description |
---|---|
protected MenuActionFactory |
_appearanceMenuActionFactory
The appearance menu factory.
|
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.
|
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
_configuration
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_getComponentType()
Get the class label of the component.
|
protected java.lang.String |
_moveToFirstDescription()
The text used in the MoveAction.TO_FIRST action menu choice.
|
protected java.lang.String |
_moveToLastDescription()
The text used in the MoveAction.TO_LAST action menu choice.
|
void |
addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.
|
static void |
renderDecoratorHighlight(NamedObj namedObj,
Figure figure)
Render the value of the _highlightColor parameter.
|
static void |
renderHighlight(NamedObj namedObj,
Figure figure)
Render the value of the _highlightColor parameter.
|
void |
setConfiguration(Configuration configuration)
Set the configuration.
|
getConfigureMenuFactory
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
public static final AttributeController.Access FULL
public static final AttributeController.Access PARTIAL
protected MenuActionFactory _appearanceMenuActionFactory
protected ListenToAction _listenToAction
protected RenameDialogAction _renameAction
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.public void addHotKeys(JGraph jgraph)
addHotKeys
in class NamedObjController
jgraph
- The JGraph to which hot keys are to be added.public static void renderHighlight(NamedObj namedObj, Figure figure)
namedObj
- The NamedObj that contains the _highlightColor
parameter.figure
- the Diva figure that is rendered.public static void renderDecoratorHighlight(NamedObj namedObj, Figure figure)
namedObj
- The NamedObj that contains the _highlightColor
parameter.figure
- the Diva figure that is rendered.public void setConfiguration(Configuration configuration)
setConfiguration
in class NamedObjController
configuration
- The configuration.protected java.lang.String _getComponentType()
protected java.lang.String _moveToFirstDescription()
protected java.lang.String _moveToLastDescription()