Package | Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
Polygon.bounds
The bounds of this
Polygon . |
Modifier and Type | Method and Description |
---|---|
Rectangle |
Component.bounds()
Deprecated. As of JDK version 1.1,
replaced by
getBounds() . |
Rectangle |
Polygon.getBoundingBox()
Deprecated. As of JDK version 1.1,
replaced by
getBounds() . |
Rectangle |
SplashScreen.getBounds()
Returns the bounds of the splash screen window as a
Rectangle . |
Rectangle |
Shape.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Rectangle |
Rectangle.getBounds()
Gets the bounding
Rectangle of this Rectangle . |
Rectangle |
Polygon.getBounds()
Gets the bounding box of this
Polygon . |
Rectangle |
MenuComponent.AccessibleAWTMenuComponent.getBounds()
Gets the bounds of this object in the form of a
Rectangle object. |
Rectangle |
List.AccessibleAWTList.AccessibleAWTListChild.getBounds()
Gets the bounds of this object in the form of a Rectangle object.
|
abstract Rectangle |
GraphicsConfiguration.getBounds()
Returns the bounds of the
GraphicsConfiguration
in the device coordinates. |
Rectangle |
Component.getBounds()
Gets the bounds of this component in the form of a
Rectangle object. |
Rectangle |
Component.AccessibleAWTComponent.getBounds()
Gets the bounds of this object 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.
|
Rectangle |
TextComponent.AccessibleAWTTextComponent.getCharacterBounds(int i)
Determines the bounding box of the character at the given
index into the string.
|
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 |
Graphics.getClipRect()
Deprecated. As of JDK version 1.1,
replaced by
getClipBounds() . |
Rectangle |
Frame.getMaximizedBounds()
Gets maximized bounds for this frame.
|
Rectangle |
GraphicsEnvironment.getMaximumWindowBounds()
Returns the maximum bounds for centered Windows.
|
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 . |
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.add(Rectangle r)
Adds a
Rectangle to this 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. |
boolean |
Rectangle.contains(Rectangle r)
Checks whether or not this
Rectangle entirely contains
the specified Rectangle . |
PaintContext |
TexturePaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a tiled image pattern. |
PaintContext |
RadialGradientPaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform transform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a circular radial color gradient pattern. |
PaintContext |
Paint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate the color pattern. |
PaintContext |
LinearGradientPaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform transform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a linear color gradient pattern. |
PaintContext |
GradientPaint.createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a linear color gradient pattern. |
PaintContext |
Color.createContext(java.awt.image.ColorModel cm,
Rectangle r,
java.awt.geom.Rectangle2D r2d,
java.awt.geom.AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a solid color field pattern. |
java.awt.image.BufferedImage |
Robot.createScreenCapture(Rectangle screenRect)
Creates an image containing pixels read from the screen.
|
Rectangle |
Component.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and
return rv.
|
Rectangle |
Graphics.getClipBounds(Rectangle r)
Returns the bounding rectangle of the current clipping area.
|
abstract boolean |
Graphics2D.hit(Rectangle rect,
Shape s,
boolean onStroke)
Checks whether or not the specified
Shape intersects
the specified Rectangle , which is in device
space. |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this
Rectangle with the
specified Rectangle . |
boolean |
Rectangle.intersects(Rectangle r)
Determines whether or not this
Rectangle and the specified
Rectangle intersect. |
void |
Window.setBounds(Rectangle r)
Moves and resizes this component to conform to the new
bounding rectangle
r . |
void |
Rectangle.setBounds(Rectangle r)
Sets the bounding
Rectangle of this Rectangle
to match the specified Rectangle . |
void |
MenuComponent.AccessibleAWTMenuComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a
Rectangle object. |
void |
List.AccessibleAWTList.AccessibleAWTListChild.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle
object.
|
void |
Component.setBounds(Rectangle r)
Moves and resizes this component to conform to the new
bounding rectangle
r . |
void |
Component.AccessibleAWTComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a
Rectangle object. |
void |
Frame.setMaximizedBounds(Rectangle bounds)
Sets the maximized bounds for this frame.
|
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this
Rectangle with the
specified Rectangle . |
Constructor and Description |
---|
Rectangle(Rectangle r)
Constructs a new
Rectangle , initialized to match
the values of the specified Rectangle . |
Modifier and Type | Method and Description |
---|---|
Rectangle |
PaintEvent.getUpdateRect()
Returns the rectangle representing the area which needs to be
repainted in response to this event.
|
Modifier and Type | Method and Description |
---|---|
void |
PaintEvent.setUpdateRect(Rectangle updateRect)
Sets the rectangle representing the area which needs to be
repainted in response to this event.
|
Constructor and Description |
---|
PaintEvent(Component source,
int id,
Rectangle updateRect)
Constructs a
PaintEvent object with the specified
source component and type. |