FileDocCategorySizeDatePackage
DrawableRect.javaAPI DocExample1117Sat Jan 24 10:44:24 GMT 2004je3.classes

DrawableRect

public class DrawableRect extends Rect
This is a subclass of Rect that allows itself to be drawn on a screen. It inherits all the fields and methods of Rect It relies on the java.awt.Graphics object to perform the drawing.

Fields Summary
Constructors Summary
public DrawableRect(int x1, int y1, int x2, int y2)
The DrawableRect constructor just invokes the Rect() constructor

 super(x1,y1,x2,y2); 
Methods Summary
public voiddraw(java.awt.Graphics g)
This is the new method defined by DrawableRect

        g.drawRect(x1, y1, (x2 - x1), (y2-y1));