Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

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. 
java.awt.im Provides classes and interfaces for the input method framework. 
 

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
 Rectangle Polygon.getBounds()
          Gets the bounding box of this Polygon.
 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.
 Rectangle Shape.getBounds()
          Returns an integer Rectangle that completely encloses the Shape.
abstract  Rectangle GraphicsConfiguration.getBounds()
          Returns the bounds of the GraphicsConfiguration in the device coordinates.
abstract  Rectangle Graphics.getClipBounds()
          Returns the bounding rectangle of the current clipping area.
 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.getBounds(Rectangle rv)
          Stores the bounds of this component into "return value" rv and return rv.
 

Methods in java.awt with parameters of type Rectangle
protected  void GridBagLayout.adjustForGravity(GridBagConstraints constraints, Rectangle r)
          Adjusts the x, y, width, and height fields to the correct values depending on the constraint geometry and pads.
protected  void GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
          This method is obsolete and supplied for backwards compatability only; new code should call adjustForGravity instead.
 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.
 Rectangle Graphics.getClipBounds(Rectangle r)
          Returns the bounding rectangle of the current clipping area.
 void Component.setBounds(Rectangle r)
          Moves and resizes this component to conform to the new bounding rectangle r.
 Rectangle Component.getBounds(Rectangle rv)
          Stores the bounds of this component into "return value" rv and return rv.
 

Constructors in java.awt with parameters of type Rectangle
Rectangle(Rectangle r)
          Constructs a new Rectangle, initialized to match the values of the specified 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.
 

Uses of Rectangle in java.awt.im
 

Methods in java.awt.im that return Rectangle
 Rectangle InputMethodRequests.getTextLocation(TextHitInfo offset)
          Gets the location of a specified offset in the current composed text, or of the selection in committed text.
 


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.