Search in sources :

Example 1 with Drawing

use of com.cburch.draw.model.Drawing in project logisim-evolution by reds-heig.

the class Main method 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");
}
Also used : Drawing(com.cburch.draw.model.Drawing) CanvasObject(com.cburch.draw.model.CanvasObject) Rectangle(com.cburch.draw.shapes.Rectangle) DrawingAttributeSet(com.cburch.draw.tools.DrawingAttributeSet)

Aggregations

CanvasObject (com.cburch.draw.model.CanvasObject)1 Drawing (com.cburch.draw.model.Drawing)1 Rectangle (com.cburch.draw.shapes.Rectangle)1 DrawingAttributeSet (com.cburch.draw.tools.DrawingAttributeSet)1