Package ptolemy.vergil.toolbox

Examples of ptolemy.vergil.toolbox.MenuActionFactory


        }

        if (_configuration != null) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _lookInsideAction));
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _openInstanceAction));

            if (_access == FULL) {
                // Create an Appearance submenu.
                _createAppearanceSubmenu();
View Full Code Here


        setNodeRenderer(new StateRenderer(controller.getGraphModel()));

        if (_configuration != null) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _lookInsideAction));
        }
    }
View Full Code Here

        super.setConfiguration(configuration);

        if (_configuration != null) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _lookInsideAction));
        }
    }
View Full Code Here

    public ActorInstanceController(GraphController controller, Access access) {
        super(controller, access);

        if (access == FULL) {
            // The following do not require a configuration.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _convertToClassAction));
        }

        // Set up a listener to lay out the ports when graph changes.
        // NOTE: Because of this listener, it is imperative that there
View Full Code Here

        super(controller);
        setNodeRenderer(new RelationRenderer());
        _getDocumentationAction = new GetDocumentationAction();

        // Add to the context menu.
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                _getDocumentationAction));
    }
View Full Code Here

                    "Customize");

            Action[] actions = { _getDocumentationAction,
                    new CustomizeDocumentationAction(),
                    new RemoveCustomDocumentationAction() };
            _menuFactory.addMenuItemFactory(new MenuActionFactory(actions,
                    "Documentation"));

            // Note that we also have "Send to Back" and "Bring to Front" in
            // vergil/basic/BasicGraphFrame.java
            Action[] appearanceActions = {
                    new MoveAction("Send to Back", MoveAction.TO_FIRST),
                    new MoveAction("Bring to Front", MoveAction.TO_LAST) };
            _appearanceMenuActionFactory = new MenuActionFactory(
                    appearanceActions, "Appearance");
            _menuFactory.addMenuItemFactory(_appearanceMenuActionFactory);
        }
    }
View Full Code Here

        public DependencyController(GraphController controller) {
            super(controller);

            HighlightDependents highlight = new HighlightDependents(
                    "Highlight dependents", true, false);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(highlight));

            HighlightDependents clear1 = new HighlightDependents(
                    "Clear dependents", true, true);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(clear1));

            HighlightDependents prerequisites = new HighlightDependents(
                    "Highlight prerequisites", false, false);
            _menuFactory
                    .addMenuItemFactory(new MenuActionFactory(prerequisites));

            HighlightDependents clear2 = new HighlightDependents(
                    "Clear prerequisites", false, true);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(clear2));
        }
View Full Code Here

        // The contents of the menu is determined by the associated
        // menu factory, which is a protected member of this class.
        // Derived classes can add menu items to it.
        _menuFactory = new PtolemyMenuFactory(controller);
        _menuFactory
                .addMenuItemFactory(new MenuActionFactory(_configureAction));
        _menuCreator.setMenuFactory(_menuFactory);

        // Add a double click interactor.
        ActionInteractor doubleClickInteractor = new ActionInteractor(
                _configureAction);
View Full Code Here

     @param access The access level.
     */
    public HierarchicalStateController(GraphController controller, Access access) {
        super(controller, access);

        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new AddRefinementAction()));
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new RemoveRefinementAction()));
    }
View Full Code Here

     @param controller The associated graph controller.
     */
    public ModalTransitionController(final GraphController controller) {
        super(controller);

        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new AddRefinementAction()));
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new RemoveRefinementAction()));
    }
View Full Code Here

TOP

Related Classes of ptolemy.vergil.toolbox.MenuActionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.