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
 
  
  -  
	symantec.itools.awt.shape.Rect()
   -   Constructs a default Rectangle.
 
  
  -  
	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.
  
 -  
	paint(Graphics)
   -   Paints the rectangle using the given graphics context.
 
  
Rect
public Rect()
  -  Constructs a default Rectangle.
  
 
 
  
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
  
 
 
 
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