Package com.cburch.draw.toolbar

Examples of com.cburch.draw.toolbar.Toolbar


    // set up menu bar and toolbar
    menubar = new LogisimMenuBar(this, proj);
    menuListener = new MenuListener(this, menubar);
    menuListener.setEditHandler(layoutEditHandler);
    setJMenuBar(menubar);
    toolbar = new Toolbar(layoutToolbarModel);

    // set up the left-side components
    ToolbarModel projectToolbarModel = new ExplorerToolbarModel(this, menuListener);
    projectToolbar = new Toolbar(projectToolbarModel);
    toolbox = new Toolbox(proj, menuListener);
    simExplorer = new SimulationExplorer(proj, menuListener);
    explorerPane = new CardPanel();
    explorerPane.addView(VIEW_TOOLBOX, toolbox);
    explorerPane.addView(VIEW_SIMULATION, simExplorer);
View Full Code Here


 
  Toolbox(Project proj, MenuListener menu) {
    super(new BorderLayout());
   
    ToolboxToolbarModel toolbarModel = new ToolboxToolbarModel(menu);
    Toolbar toolbar = new Toolbar(toolbarModel);
    add(toolbar, BorderLayout.NORTH);
   
    toolbox = new ProjectExplorer(proj);
    toolbox.setListener(new ToolboxManip(proj, toolbox));
    add(new JScrollPane(toolbox), BorderLayout.CENTER);
View Full Code Here

  SimulationExplorer(Project proj, MenuListener menu) {
    super(new BorderLayout());
    this.project = proj;
   
    SimulationToolbarModel toolbarModel = new SimulationToolbarModel(proj, menu);
    Toolbar toolbar = new Toolbar(toolbarModel);
    add(toolbar, BorderLayout.NORTH);

    model = new SimulationTreeModel(proj.getSimulator().getCircuitState());
    model.setCurrentView(project.getCircuitState());
    tree = new JTree(model);
View Full Code Here

        // set up menu bar and toolbar
        menubar = new LogisimMenuBar(this, proj);
        menuListener = new MenuListener(this, menubar);
        menuListener.setEditHandler(layoutEditHandler);
        setJMenuBar(menubar);
        toolbar = new Toolbar(layoutToolbarModel);

        // set up the left-side components
        ToolbarModel projectToolbarModel = new ExplorerToolbarModel(this, menuListener);
        projectToolbar = new Toolbar(projectToolbarModel);
        toolbox = new Toolbox(proj, menuListener);
        simExplorer = new SimulationExplorer(proj, menuListener);
        explorerPane = new CardPanel();
        explorerPane.addView(VIEW_TOOLBOX, toolbox);
        explorerPane.addView(VIEW_SIMULATION, simExplorer);
View Full Code Here

    Toolbox(Project proj, MenuListener menu) {
        super(new BorderLayout());

        ToolboxToolbarModel toolbarModel = new ToolboxToolbarModel(menu);
        Toolbar toolbar = new Toolbar(toolbarModel);
        add(toolbar, BorderLayout.NORTH);

        toolbox = new ProjectExplorer(proj);
        toolbox.setListener(new ToolboxManip(proj, toolbox));
        add(new JScrollPane(toolbox), BorderLayout.CENTER);
View Full Code Here

    SimulationExplorer(Project proj, MenuListener menu) {
        super(new BorderLayout());
        this.project = proj;

        SimulationToolbarModel toolbarModel = new SimulationToolbarModel(proj, menu);
        Toolbar toolbar = new Toolbar(toolbarModel);
        add(toolbar, BorderLayout.NORTH);

        model = new SimulationTreeModel(proj.getSimulator().getCircuitState());
        model.setCurrentView(project.getCircuitState());
        tree = new JTree(model);
View Full Code Here

TOP

Related Classes of com.cburch.draw.toolbar.Toolbar

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.