OSDN Git Service

* All files: Updated copyright information.
[pf3gnuchains/gcc-fork.git] / libjava / java / awt / Rectangle.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;
10
11 /* Status:  Quite imcomplete. */
12
13 public class Rectangle implements Shape
14 {
15   public int x;
16   public int y;
17   public int width;
18   public int height;
19
20   public Rectangle () { }
21
22   public Rectangle (int width, int height)
23   { this.width = width;  this.height = height; }
24
25   public Rectangle (int x, int y, int width, int height) 
26   {
27     this.x = x;  this.y = y;
28     this.width = width;  this.height = height;
29   }
30
31   public Rectangle getBounds ()
32   {
33     return new Rectangle (x, y, width, height);
34   }
35 }