KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > geom > Dimension2D


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4  
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7  
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9  
10    $Log: Dimension2D.java,v $
11    Revision 1.4 2004/04/30 23:18:26 dannaab
12    List selection support, misc bug fixes
13
14    Revision 1.3 2004/04/23 00:52:32 dannaab
15    Handle borders in a Swing-like way. Implement EmptyBorder & TitledBorder
16
17    Revision 1.2 2004/04/20 16:36:13 bobintetley
18    Code cleanup
19
20    Revision 1.1 2004/01/15 15:20:29 bobintetley
21    Java2D work
22
23  
24  */

25
26 package swingwt.awt.geom;
27
28 public abstract class Dimension2D implements Cloneable JavaDoc {
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 JavaDoc clone() {
38         try {
39             return super.clone();
40         } catch (CloneNotSupportedException JavaDoc e) { throw new InternalError JavaDoc(); }
41     }
42 }
43
Popular Tags