All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.awt.draw.Rect

java.lang.Object
   |
   +----ncsa.awt.draw.DrawingPrimitive
           |
           +----ncsa.awt.draw.Rect

public class Rect
extends DrawingPrimitive
A class that implements a Rect(angle) DrawingPrimitive


Constructor Index

 o Rect()
 o Rect(Rectangle)
Constructs a Rect that fits in the given bounding box

Method Index

 o describe()
 o drawPoints(Graphics)
Draws the rectangle in the given graphics context

Constructors

 o Rect
 public Rect()
 o Rect
 public Rect(Rectangle rect)
Constructs a Rect that fits in the given bounding box

Methods

 o drawPoints
 public void drawPoints(Graphics g)
Draws the rectangle in the given graphics context

Parameters:
g - the graphics context
Overrides:
drawPoints in class DrawingPrimitive
 o describe
 public String describe()
Returns:
a string describing this rectangle
Overrides:
describe in class DrawingPrimitive

All Packages  Class Hierarchy  This Package  Previous  Next  Index