Package com.cburch.draw.model

Examples of com.cburch.draw.model.Drawing


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


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

TOP

Related Classes of com.cburch.draw.model.Drawing

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.