Uses of Class
java.awt.Rectangle
-
Packages that use Rectangle 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. -
-
Uses of Rectangle in java.awt
Fields in java.awt declared as Rectangle Modifier and Type Field and Description protected Rectangle
Polygon. bounds
The bounds of thisPolygon
.Methods in java.awt that return Rectangle Modifier and Type Method and Description Rectangle
Component. bounds()
Deprecated. As of JDK version 1.1, replaced bygetBounds()
.Rectangle
Polygon. getBoundingBox()
Deprecated. As of JDK version 1.1, replaced bygetBounds()
.Rectangle
SplashScreen. getBounds()
Returns the bounds of the splash screen window as aRectangle
.Rectangle
Shape. getBounds()
Returns an integerRectangle
that completely encloses theShape
.Rectangle
Rectangle. getBounds()
Gets the boundingRectangle
of thisRectangle
.Rectangle
Polygon. getBounds()
Gets the bounding box of thisPolygon
.Rectangle
MenuComponent.AccessibleAWTMenuComponent. getBounds()
Gets the bounds of this object in the form of aRectangle
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 theGraphicsConfiguration
in the device coordinates.Rectangle
Component. getBounds()
Gets the bounds of this component in the form of aRectangle
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 bygetClipBounds()
.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 thisRectangle
with the specifiedRectangle
.Rectangle
Rectangle. union(Rectangle r)
Computes the union of thisRectangle
with the specifiedRectangle
.Methods in java.awt with parameters of type Rectangle Modifier and Type Method and Description void
Rectangle. add(Rectangle r)
Adds aRectangle
to thisRectangle
.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 calladjustForGravity
instead.boolean
Rectangle. contains(Rectangle r)
Checks whether or not thisRectangle
entirely contains the specifiedRectangle
.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 aPaintContext
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 aPaintContext
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 aPaintContext
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 aPaintContext
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 aPaintContext
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 aPaintContext
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 specifiedShape
intersects the specifiedRectangle
, which is in device space.Rectangle
Rectangle. intersection(Rectangle r)
Computes the intersection of thisRectangle
with the specifiedRectangle
.boolean
Rectangle. intersects(Rectangle r)
Determines whether or not thisRectangle
and the specifiedRectangle
intersect.void
Window. setBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangler
.void
Rectangle. setBounds(Rectangle r)
Sets the boundingRectangle
of thisRectangle
to match the specifiedRectangle
.void
MenuComponent.AccessibleAWTMenuComponent. setBounds(Rectangle r)
Sets the bounds of this object in the form of aRectangle
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 rectangler
.void
Component.AccessibleAWTComponent. setBounds(Rectangle r)
Sets the bounds of this object in the form of aRectangle
object.void
Frame. setMaximizedBounds(Rectangle bounds)
Sets the maximized bounds for this frame.Rectangle
Rectangle. union(Rectangle r)
Computes the union of thisRectangle
with the specifiedRectangle
.Constructors in java.awt with parameters of type Rectangle Constructor and Description Rectangle(Rectangle r)
Constructs a newRectangle
, initialized to match the values of the specifiedRectangle
. -
Uses of Rectangle in java.awt.event
Methods in java.awt.event that return 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.Methods in java.awt.event with parameters of type Rectangle 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.Constructors in java.awt.event with parameters of type Rectangle Constructor and Description PaintEvent(Component source, int id, Rectangle updateRect)
Constructs aPaintEvent
object with the specified source component and type.
-