コード例 #1
0
 @Override
 public AbstractShape create(int x, int y) {
   thisShape = new ComposedShape();
   Point startPosition = new Point(x, y);
   thisShape.setStart(startPosition);
   return thisShape;
 }
コード例 #2
0
 @Override
 public void complete(int x, int y) {
   Point endPosition = new Point(x, y);
   thisShape.setEnd(endPosition);
 }