예제 #1
0
 @Override
 public AbstractShape create(int x, int y) {
   startPos = new Point(x, y);
   myOval = new MyOval();
   myOval.setStart(startPos);
   return myOval;
 }
예제 #2
0
 @Override
 public AbstractShape expand(int x, int y) {
   myOval.setEnd(new Point(x, y));
   return myOval;
 }