1 /* Copyright (C) 1999 Free Software Foundation
3 This file is part of libjava.
5 This software is copyrighted work licensed under the terms of the
6 Libjava License. Please consult the file "LIBJAVA_LICENSE" for
11 /* Status: Quite imcomplete. */
13 public class Rectangle implements Shape
20 public Rectangle () { }
22 public Rectangle (int width, int height)
23 { this.width = width; this.height = height; }
25 public Rectangle (int x, int y, int width, int height)
27 this.x = x; this.y = y;
28 this.width = width; this.height = height;
31 public Rectangle getBounds ()
33 return new Rectangle (x, y, width, height);