1 25 26 package swingwt.awt.geom; 27 28 public abstract class Dimension2D implements Cloneable { 29 protected Dimension2D() { 30 } 31 public abstract double getWidth(); 32 public abstract double getHeight(); 33 public abstract void setSize(double width, double height); 34 public void setSize(Dimension2D d) { 35 setSize(d.getWidth(), d.getHeight()); 36 } 37 public Object clone() { 38 try { 39 return super.clone(); 40 } catch (CloneNotSupportedException e) { throw new InternalError (); } 41 } 42 } 43 | Popular Tags |