Examples of MenuCreator


Examples of diva.gui.toolbox.MenuCreator

     *  involves the canvas.
     */
    protected void initializeInteraction() {
        GraphPane pane = getGraphPane();
        _menuFactory = new SchematicContextMenuFactory(this);
        _menuCreator = new MenuCreator(_menuFactory);
        _menuCreator.setMouseFilter(new PopupMouseFilter());

        // Note that the menuCreator cannot be an interactor, because
        // it accepts all events.
        // NOTE: The above is a very strange comment, since
View Full Code Here

Examples of diva.gui.toolbox.MenuCreator

     */
    public ParameterizedNodeController(GraphController controller) {
        super(controller);

        // Add a menu creator.
        _menuCreator = new MenuCreator(null);
        _menuCreator.setMouseFilter(new PopupMouseFilter());

        // FIXME: Why doesn't getNodeInteractor() return a NodeInteractor?
        NodeInteractor interactor = (NodeInteractor) getNodeInteractor();
        interactor.addInteractor(_menuCreator);
View Full Code Here

Examples of diva.gui.toolbox.MenuCreator

        ConnectorTarget ct = new LinkTarget();
        setConnectorTarget(ct);
        setEdgeRenderer(new LinkRenderer());

        _menuCreator = new MenuCreator(null);
        _menuCreator.setMouseFilter(new PopupMouseFilter());
        interactor.addInteractor(_menuCreator);

        // The contents of the menu is determined by the associated
        // menu factory, which is a protected member of this class.
View Full Code Here

Examples of diva.gui.toolbox.MenuCreator

        ConnectorTarget ct = new LinkTarget();
        setConnectorTarget(ct);
        setEdgeRenderer(new LinkRenderer());

        _menuCreator = new MenuCreator(null);
        _menuCreator.setMouseFilter(new PopupMouseFilter());
        interactor.addInteractor(_menuCreator);

        // The contents of the menu is determined by the associated
        // menu factory, which is a protected member of this class.
View Full Code Here

Examples of org.apache.jmeter.gui.plugin.MenuCreator

                    Class<?> commandClass = Class.forName(strClassName);
                    if (!Modifier.isAbstract(commandClass.getModifiers())) {
                        if(log.isDebugEnabled()) {
                            log.debug("Instantiating: "+ commandClass.getName());
                        }
                        MenuCreator creator = (MenuCreator) commandClass.newInstance();
                        menuCreators.add(creator);                 
                    }
                } catch (Exception e) {
                    log.error("Exception registering "+MenuCreator.class.getName() + " with implementation:"+strClassName, e);
                }
            }
        } catch (IOException e) {
            log.error("Exception finding implementations of "+MenuCreator.class, e);
        }

        makeFileMenu();
        makeEditMenu();
        makeRunMenu();
        makeOptionsMenu();
        makeHelpMenu();
        makeSearchMenu();
        this.add(fileMenu);
        this.add(editMenu);
        this.add(searchMenu);
        this.add(runMenu);
        this.add(optionsMenu);
        for (Iterator<MenuCreator> iterator = menuCreators.iterator(); iterator.hasNext();) {
            MenuCreator menuCreator = iterator.next();
            JMenu[] topLevelMenus = menuCreator.getTopLevelMenus();
            for (JMenu topLevelMenu : topLevelMenus) {
                this.add(topLevelMenu);               
            }
        }
        this.add(helpMenu);
View Full Code Here

Examples of org.apache.jmeter.gui.plugin.MenuCreator

                    Class<?> commandClass = Class.forName(strClassName);
                    if (!Modifier.isAbstract(commandClass.getModifiers())) {
                        if(log.isDebugEnabled()) {
                            log.debug("Instantiating: "+ commandClass.getName());
                        }
                        MenuCreator creator = (MenuCreator) commandClass.newInstance();
                        menuCreators.add(creator);                 
                    }
                } catch (Exception e) {
                    log.error("Exception registering "+MenuCreator.class.getName() + " with implementation:"+strClassName, e);
                }
            }
        } catch (IOException e) {
            log.error("Exception finding implementations of "+MenuCreator.class, e);
        }

        makeFileMenu();
        makeEditMenu();
        makeRunMenu();
        makeOptionsMenu();
        makeHelpMenu();
        makeSearchMenu();
        this.add(fileMenu);
        this.add(editMenu);
        this.add(searchMenu);
        this.add(runMenu);
        this.add(optionsMenu);
        for (Iterator<MenuCreator> iterator = menuCreators.iterator(); iterator.hasNext();) {
            MenuCreator menuCreator = iterator.next();
            JMenu[] topLevelMenus = menuCreator.getTopLevelMenus();
            for (JMenu topLevelMenu : topLevelMenus) {
                this.add(topLevelMenu);               
            }
        }
        this.add(helpMenu);
View Full Code Here

Examples of org.berlin.patterns.swing.app.gui.app.menu.MenuCreator

        this.startServer();
    } // End of the method - create application //
   
    @Override
    public JMenuBar createMenu() {
        final MenuCreator menuCreator = new MenuCreator();       
        return menuCreator.createMenu();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.