Package com.cburch.logisim.gui.generic

Examples of com.cburch.logisim.gui.generic.CanvasPane


    explorerPane.setView(VIEW_TOOLBOX);
    attrTable = new AttrTable(this);
    zoom = new ZoomControl(layoutZoomModel);

    // set up the central area
    CanvasPane canvasPane = new CanvasPane(layoutCanvas);
    mainPanelSuper = new JPanel(new BorderLayout());
    canvasPane.setZoomModel(layoutZoomModel);
    mainPanel = new CardPanel();
    mainPanel.addView(EDIT_LAYOUT, canvasPane);
    mainPanel.setView(EDIT_LAYOUT);
    mainPanelSuper.add(mainPanel, BorderLayout.CENTER);
View Full Code Here


  //
  // graphics methods
  //
  double getZoomFactor() {
    CanvasPane pane = canvasPane;
    return pane == null ? 1.0 : pane.getZoomFactor();
  }
View Full Code Here

    toolbarModel = new AppearanceToolbarModel(selectTool, canvas, attrs);
    zoomModel = new BasicZoomModel(AppPreferences.APPEARANCE_SHOW_GRID,
        AppPreferences.APPEARANCE_ZOOM, ZOOM_OPTIONS);
    canvas.getGridPainter().setZoomModel(zoomModel);
    attrTableManager = null;
    canvasPane = new CanvasPane(canvas);
    canvasPane.setZoomModel(zoomModel);
    editHandler = new AppearanceEditHandler(canvas);
  }
View Full Code Here

        explorerPane.setView(VIEW_TOOLBOX);
        attrTable = new AttrTable(this);
        zoom = new ZoomControl(layoutZoomModel);

        // set up the central area
        CanvasPane canvasPane = new CanvasPane(layoutCanvas);
        mainPanelSuper = new JPanel(new BorderLayout());
        canvasPane.setZoomModel(layoutZoomModel);
        mainPanel = new CardPanel();
        mainPanel.addView(EDIT_LAYOUT, canvasPane);
        mainPanel.setView(EDIT_LAYOUT);
        mainPanelSuper.add(mainPanel, BorderLayout.CENTER);
View Full Code Here

        toolbarModel = new AppearanceToolbarModel(selectTool, canvas, attrs);
        zoomModel = new BasicZoomModel(AppPreferences.APPEARANCE_SHOW_GRID,
                AppPreferences.APPEARANCE_ZOOM, ZOOM_OPTIONS);
        canvas.getGridPainter().setZoomModel(zoomModel);
        attrTableManager = null;
        canvasPane = new CanvasPane(canvas);
        canvasPane.setZoomModel(zoomModel);
        editHandler = new AppearanceEditHandler(canvas);
    }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.gui.generic.CanvasPane

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.