Class DependencyHighlighter

  • All Implemented Interfaces:
    java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable, Singleton

    public class DependencyHighlighter
    extends NodeControllerFactory
    This is an attribute that produces a custom node controller that adds context menu commands to highlight dependents and prerequisites. A dependent is a downstream actor, and a prerequisite is an upstream actor. To use this, drop it onto any actor. The context menu (right click or command click) acquires four additional commands to highlight or clear highlights on dependents or prerequisites.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • Field Detail

      • highlightColor

        public ColorAttribute highlightColor
        The highlight color.
    • Method Detail

      • create

        public NamedObjController create​(GraphController controller)
        Return a new node controller. This base class returns an instance of IconController. Derived classes can return some other class to customize the context menu.
        Overrides:
        create in class NodeControllerFactory
        Parameters:
        controller - The associated graph controller.
        Returns:
        A new node controller.