FileDocCategorySizeDatePackage
DrawableRect.javaAPI DocExample894Mon Sep 22 13:30:30 BST 1997None

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));