Class AttributeController

    • Field Detail

      • _appearanceMenuActionFactory

        protected MenuActionFactory _appearanceMenuActionFactory
        The appearance menu factory.
      • _listenToAction

        protected ListenToAction _listenToAction
        Action to listen to debug messages.
      • _renameAction

        protected RenameDialogAction _renameAction
        Action to launch rename dialog.
    • Constructor Detail

      • AttributeController

        public AttributeController​(GraphController controller)
        Create an attribute controller associated with the specified graph controller. The attribute controller is given full access.
        Parameters:
        controller - The associated graph controller.
      • AttributeController

        public AttributeController​(GraphController controller,
                                   AttributeController.Access access)
        Create an attribute controller associated with the specified graph controller.
        Parameters:
        controller - The associated graph controller.
        access - The access level.
    • Method Detail

      • addHotKeys

        public void addHotKeys​(JGraph jgraph)
        Add hot keys to the actions in the given JGraph. It would be better that this method was added higher in the hierarchy. Now most controllers
        Overrides:
        addHotKeys in class NamedObjController
        Parameters:
        jgraph - The JGraph to which hot keys are to be added.
      • renderHighlight

        public static void renderHighlight​(NamedObj namedObj,
                                           Figure figure)
        Render the value of the _highlightColor parameter.
        Parameters:
        namedObj - The NamedObj that contains the _highlightColor parameter.
        figure - the Diva figure that is rendered.
      • renderDecoratorHighlight

        public static void renderDecoratorHighlight​(NamedObj namedObj,
                                                    Figure figure)
        Render the value of the _highlightColor parameter.
        Parameters:
        namedObj - The NamedObj that contains the _highlightColor parameter.
        figure - the Diva figure that is rendered.
      • setConfiguration

        public void setConfiguration​(Configuration configuration)
        Set the configuration. This is used in derived classes to to open files (such as documentation). The configuration is is important because it keeps track of which files are already open and ensures that there is only one editor operating on the file at any one time.
        Overrides:
        setConfiguration in class NamedObjController
        Parameters:
        configuration - The configuration.
      • _getComponentType

        protected java.lang.String _getComponentType()
        Get the class label of the component.
        Returns:
        the class label of the component.
      • _moveToFirstDescription

        protected java.lang.String _moveToFirstDescription()
        The text used in the MoveAction.TO_FIRST action menu choice. Derived classes like IOPortController change this.
        Returns:
        the text.
      • _moveToLastDescription

        protected java.lang.String _moveToLastDescription()
        The text used in the MoveAction.TO_LAST action menu choice. Derived classes like IOPortController change this.
        Returns:
        the text.