@Override public AbstractShape create(int x, int y) { thisShape = new ComposedShape(); Point startPosition = new Point(x, y); thisShape.setStart(startPosition); return thisShape; }
@Override public void complete(int x, int y) { Point endPosition = new Point(x, y); thisShape.setEnd(endPosition); }