public class TestShape {
  public static void stretchX(Ellipse e, int w) {
    Point f1 = e.getF1();
    Point f2 = e.getF2();
    f1.setX(f1.getX() - w);
    f2.setX(f2.getX() + w);
  }
  public static void main(String args[]) {
    Ellipse e = new Circle();
    stretchX(e, 10);
  }
}
