OSDN Git Service

* All files: Updated copyright information.
[pf3gnuchains/gcc-fork.git] / libjava / java / awt / geom / Dimension2D.java
1 /* Copyright (C) 1999  Free Software Foundation
2
3    This file is part of libjava.
4
5 This software is copyrighted work licensed under the terms of the
6 Libjava License.  Please consult the file "LIBJAVA_LICENSE" for
7 details.  */
8
9 package java.awt.geom;
10
11 /**
12  * @author Per Bothner <bothner@cygnus.com>
13  * @date Fenruary, 1999.
14  */
15
16 /* Written using online API docs for JDK 1.2 beta from http://www.javasoft.com.
17  * Status:  Believed complete and correct.
18  */
19
20 public abstract class Dimension2D implements Cloneable
21 {
22   public abstract double getWidth();
23   public abstract double getHeight();
24
25   public abstract void setSize (double width, double height);
26
27   public void setSize (Dimension2D dim)
28   {
29     setSize(dim.getWidth(), dim.getHeight());
30   }
31
32   public Object clone ()
33   {
34     return super.clone();
35   }
36 }