Class ResizableAttributeControllerFactory

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

    public class ResizableAttributeControllerFactory
    extends NodeControllerFactory
    This is attribute that produces a custom node controller for icons that can be interactively resized. It provides a context menu suitable for an attribute as well as an interactor that provides for resizing. To use this class, just insert it as an attribute inside a Ptolemy II attribute, and then right clicking on the icon for that object will result in the use of the controller specified here. The instance by convention will be named "_controllerFactory", but the only reason to enforce this is that only the first such controller factory found as an attribute will be used. It is a singleton, so placing it any container will replace any previous controller factory with the same name.
    Since:
    Ptolemy II 4.0
    Version:
    $Id$
    Author:
    Edward A. Lee and Steve Neuendorffer
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • 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.