示例#1
0
 public List<Object[]> getShapes() {
   List<Object[]> shapesCollection = new ArrayList<Object[]>();
   for (int i = 0; i < shapes.size(); i++) {
     shapesCollection.add(shapes.get(i).toObjectArray());
   }
   return shapesCollection;
 }
示例#2
0
 public void undo() {
   if (shapes.size() > 0) shapes.remove(shapes.size() - 1);
 }
示例#3
0
 public void clear() {
   shapes.clear();
 }
示例#4
0
 public void addShape(Shape shape) {
   shapes.add(shape);
 }