Class symantec.itools.awt.shape.Rect
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.shape.Rect

Object
   |
   +----Component
           |
           +----Shape
                   |
                   +----symantec.itools.awt.shape.Rect

public class Rect
extends Shape
This class forms the Rectangle shape component.

Version:
1.1, July 30, 1997
Author:
Symantec
See Also:
HorizontalLine, Square, VerticalLine

Constructor Index

 o symantec.itools.awt.shape.Rect()
Constructs a default Rectangle.

Method Index

 o contains(int, int)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.
 o paint(Graphics)
Paints the rectangle using the given graphics context.

Constructors

 o Rect
public Rect()
Constructs a default Rectangle.

Methods

 o contains
public boolean contains(int x,
                        int y)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.

Parameters:
x - the x coordinate
y - the y coordinate
Overrides:
contains in class Component
See Also:
getComponentAt
 o paint
public void paint(Graphics g)
Paints the rectangle using the given graphics context. This is a standard Java AWT method which typically gets called by the AWT to handle painting this component. It paints this component using the given graphics context. The graphics context clipping region is set to the bounding rectangle of this component and its <0,0> coordinate is this component's top-left corner.

Parameters:
g - the graphics context used for painting
Overrides:
paint in class Shape
See Also:
repaint, update

All Packages  Class Hierarchy  This Package  Previous  Next  Index