Package com.cburch.draw.tools

Examples of com.cburch.draw.tools.DrawingAttributeSet


  private AttrTableDrawManager attrTableManager;
  private ZoomModel zoomModel;
  private AppearanceEditHandler editHandler;
 
  public AppearanceView() {
    attrs = new DrawingAttributeSet();
    SelectTool selectTool = new SelectTool();
    canvas = new AppearanceCanvas(selectTool);
    toolbarModel = new AppearanceToolbarModel(selectTool, canvas, attrs);
    zoomModel = new BasicZoomModel(AppPreferences.APPEARANCE_SHOW_GRID,
        AppPreferences.APPEARANCE_ZOOM, ZOOM_OPTIONS);
View Full Code Here


import com.cburch.logisim.util.HorizontalSplitPane;
import com.cburch.logisim.util.VerticalSplitPane;

public class Main {
  public static void main(String[] args) {
    DrawingAttributeSet attrs = new DrawingAttributeSet();
    Drawing model = new Drawing();
    CanvasObject rect = attrs.applyTo(new Rectangle(25, 25, 50, 50));
    model.addObjects(0, Collections.singleton(rect));

    showFrame(model, "Drawing 1");
    showFrame(model, "Drawing 2");
  }
View Full Code Here

    showFrame(model, "Drawing 2");
  }
 
  private static void showFrame(Drawing model, String title) {
    JFrame frame = new JFrame(title);
    DrawingAttributeSet attrs = new DrawingAttributeSet();

    Canvas canvas = new Canvas();
    Toolbar toolbar = new Toolbar(canvas, attrs);
    canvas.setModel(model, new UndoLogDispatcher(new UndoLog()));
    canvas.setTool(toolbar.getDefaultTool());
View Full Code Here

import com.cburch.logisim.util.HorizontalSplitPane;
import com.cburch.logisim.util.VerticalSplitPane;

public class Main {
    public static void main(String[] args) {
        DrawingAttributeSet attrs = new DrawingAttributeSet();
        Drawing model = new Drawing();
        CanvasObject rect = attrs.applyTo(new Rectangle(25, 25, 50, 50));
        model.addObjects(0, Collections.singleton(rect));

        showFrame(model, "Drawing 1");
        showFrame(model, "Drawing 2");
    }
View Full Code Here

        showFrame(model, "Drawing 2");
    }

    private static void showFrame(Drawing model, String title) {
        JFrame frame = new JFrame(title);
        DrawingAttributeSet attrs = new DrawingAttributeSet();

        Canvas canvas = new Canvas();
        Toolbar toolbar = new Toolbar(canvas, attrs);
        canvas.setModel(model, new UndoLogDispatcher(new UndoLog()));
        canvas.setTool(toolbar.getDefaultTool());
View Full Code Here

    private AttrTableDrawManager attrTableManager;
    private ZoomModel zoomModel;
    private AppearanceEditHandler editHandler;

    public AppearanceView() {
        attrs = new DrawingAttributeSet();
        SelectTool selectTool = new SelectTool();
        canvas = new AppearanceCanvas(selectTool);
        toolbarModel = new AppearanceToolbarModel(selectTool, canvas, attrs);
        zoomModel = new BasicZoomModel(AppPreferences.APPEARANCE_SHOW_GRID,
                AppPreferences.APPEARANCE_ZOOM, ZOOM_OPTIONS);
View Full Code Here

TOP

Related Classes of com.cburch.draw.tools.DrawingAttributeSet

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.