Class ConceptController

  • All Implemented Interfaces:
    NodeController

    public class ConceptController
    extends AttributeInOntologyController
    The node controller for ontology concept model elements. This class provides interaction with nodes that represent concepts in an ontology model. It extends the AttributeController which provides a double click binding to edit the parameters of the concept, and a context menu containing commands to edit parameters ("Configure"), rename, and get documentation. In addition, it binds the action to edit the acceptability flag for a concept.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton, Man-Kit Leung
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Field Detail

      • _toggleAcceptabilityAction

        protected ptolemy.vergil.ontologies.ConceptController.ToggleAcceptabilityAction _toggleAcceptabilityAction
        The toggle acceptability context menu action.
    • Constructor Detail

      • ConceptController

        public ConceptController​(GraphController controller)
        Create a concept controller associated with the specified graph controller.
        Parameters:
        controller - The associated graph controller.
      • ConceptController

        public ConceptController​(GraphController controller,
                                 AttributeController.Access access)
        Create a concept 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 AttributeController
        Parameters:
        jgraph - The JGraph to which hot keys are to be added.
      • _getComponentType

        protected java.lang.String _getComponentType()
        Get the class label of the component which is a Concept.
        Overrides:
        _getComponentType in class AttributeController
        Returns:
        The string "Concept".