Package ptolemy.vergil.toolbox

Examples of ptolemy.vergil.toolbox.MenuActionFactory


     */
    protected void initializeInteraction() {
        super.initializeInteraction();

        //GraphPane pane = getGraphPane();
        _menuFactory.addMenuItemFactory(new MenuActionFactory(_editIconAction));
        _menuFactory
                .addMenuItemFactory(new MenuActionFactory(_removeIconAction));
    }
View Full Code Here


        _decoratable = false;

        setNodeRenderer(new EntityPortRenderer());

        // "Listen to Actor"
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new ListenToPortAction()));

        // Ports of entities do not use a selection interactor with
        // the same selection model as the rest of the first level figures.
        // If this were allowed, then the port would be able to be deleted.
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);
        doubleClickInteractor.setConsuming(false);
        doubleClickInteractor.setMouseFilter(new MouseFilter(1, 0, 0, 2));

        interactor.addInteractor(doubleClickInteractor);

        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

        _configuration = 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

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.