-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDemo.java
More file actions
28 lines (24 loc) · 754 Bytes
/
Demo.java
File metadata and controls
28 lines (24 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import editor.ImageEditor;
import shapes.Circle;
import shapes.CompoundShape;
import shapes.Dot;
import shapes.Rectangle;
public class Demo {
public static void main(String[] args) {
ImageEditor editor = new ImageEditor();
editor.loadShapes(
new Circle(10, 10, 10),
new CompoundShape(
new Circle(110, 110, 50),
new Dot(160, 160)
),
new CompoundShape(
new Rectangle(250, 250, 100, 100),
new Dot(240, 240),
new Dot(240, 360),
new Dot(360, 360),
new Dot(360, 240)
)
);
}
}