JSR-62 (Final)

Uses of Class
java.awt.Rectangle

Packages that use Rectangle
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.event Provides interfaces and classes for dealing with different types of events fired by AWT components. 
 

Uses of Rectangle in java.awt
 

Fields in java.awt declared as Rectangle
protected  Rectangle Polygon.bounds
          Bounds of the polygon.
 

Methods in java.awt that return Rectangle
abstract  Rectangle GraphicsConfiguration.getBounds()
          Returns the bounds of the GraphicsConfiguration in the device coordinates.
 Rectangle Polygon.getBounds()
          Gets the bounding box of this Polygon.
 Rectangle Polygon.getBoundingBox()
          Deprecated. As of JDK version 1.1, replaced by getBounds().
 Rectangle Shape.getBounds()
          Returns an integer Rectangle that completely encloses the Shape.
 Rectangle Rectangle.getBounds()
          Gets the bounding Rectangle of this Rectangle.
 Rectangle Rectangle.intersection(Rectangle r)
          Computes the intersection of this Rectangle with the specified Rectangle.
 Rectangle Rectangle.union(Rectangle r)
          Computes the union of this Rectangle with the specified Rectangle.
abstract  Rectangle Graphics.getClipBounds()
          Returns the bounding rectangle of the current clipping area.
 Rectangle Graphics.getClipRect()
          Deprecated. As of JDK version 1.1, replaced by getClipBounds().
 Rectangle Graphics.getClipBounds(Rectangle r)
          Returns the bounding rectangle of the current clipping area.
 Rectangle Component.getBounds()
          Gets the bounds of this component in the form of a Rectangle object.
 Rectangle Component.bounds()
          Deprecated. As of JDK version 1.1, replaced by getBounds().
 Rectangle Component.getBounds(Rectangle rv)
          Store the bounds of this component into "return value" rv and return rv.
 

Methods in java.awt with parameters of type Rectangle
 void Rectangle.setBounds(Rectangle r)
          Sets the bounding Rectangle of this Rectangle to match the specified Rectangle.
 boolean Rectangle.contains(Rectangle r)
          Checks whether or not this Rectangle entirely contains the specified Rectangle.
 boolean Rectangle.intersects(Rectangle r)
          Determines whether or not this Rectangle and the specified Rectangle intersect.
 Rectangle Rectangle.intersection(Rectangle r)
          Computes the intersection of this Rectangle with the specified Rectangle.
 Rectangle Rectangle.union(Rectangle r)
          Computes the union of this Rectangle with the specified Rectangle.
 void Rectangle.add(Rectangle r)
          Adds a Rectangle to this Rectangle.
protected  void GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
           
 Rectangle Graphics.getClipBounds(Rectangle r)
          Returns the bounding rectangle of the current clipping area.
 Rectangle Component.getBounds(Rectangle rv)
          Store the bounds of this component into "return value" rv and return rv.
 void Component.setBounds(Rectangle r)
          Moves and resizes this component to conform to the new bounding rectangle r.
 

Constructors in java.awt with parameters of type Rectangle
Rectangle(Rectangle r)
          Constructs a new Rectangle, initialized to match the values of the specificed Rectangle.
 

Uses of Rectangle in java.awt.event
 

Methods in java.awt.event that return Rectangle
 Rectangle PaintEvent.getUpdateRect()
          Returns the rectangle representing the area which needs to be repainted in response to this event.
 

Methods in java.awt.event with parameters of type Rectangle
 void PaintEvent.setUpdateRect(Rectangle updateRect)
          Sets the rectangle representing the area which needs to be repainted in response to this event.
 

Constructors in java.awt.event with parameters of type Rectangle
PaintEvent(Component source, int id, Rectangle updateRect)
          Constructs a PaintEvent object with the specified source component and type.
 


JSR-62 (Final)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.