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.
|
java.awt.font |
Provides classes and interface relating to fonts.
|
java.awt.geom |
Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry.
|
java.awt.im |
Provides classes and interfaces for the input method framework.
|
java.awt.im.spi |
Provides interfaces that enable the development of input methods
that can be used with any Java runtime environment.
|
java.awt.image |
Provides classes for creating and modifying images.
|
java.beans |
Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture.
|
javax.accessibility |
Defines a contract between user-interface components and an assistive technology
that provides access to those components.
|
javax.imageio |
The main package of the Java Image I/O API.
|
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
javax.swing.border |
Provides classes and interface for drawing
specialized borders around a Swing component.
|
javax.swing.plaf |
Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities.
|
javax.swing.plaf.basic |
Provides user interface objects built according to the
Basic look and feel.
|
javax.swing.plaf.metal |
Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel.
|
javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is
delegated.
|
javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable . |
javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes
for creating HTML text editors. |
javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree . |
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() . |
abstract Rectangle |
GraphicsConfiguration.getBounds()
Returns the bounds of the
GraphicsConfiguration
in the device coordinates. |
Rectangle |
SplashScreen.getBounds()
Returns the bounds of the splash screen window as a
Rectangle . |
Rectangle |
Polygon.getBounds()
Gets the bounding box of this
Polygon . |
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 |
Shape.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
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.
|
Rectangle |
Rectangle.getBounds()
Gets the bounding
Rectangle of this Rectangle . |
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 |
Paint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate the color pattern. |
PaintContext |
TexturePaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a tiled image pattern. |
PaintContext |
Color.createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a solid color field pattern. |
PaintContext |
GradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a linear color gradient pattern. |
PaintContext |
RadialGradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform transform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a circular radial color gradient pattern. |
PaintContext |
LinearGradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform transform,
RenderingHints hints)
Creates and returns a
PaintContext used to
generate a linear color gradient pattern. |
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 |
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 |
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 |
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 |
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. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index,
FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of the glyph at index when this
GlyphVector is rendered in a Graphics with the
given FontRenderContext at the given location. |
Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc,
float x,
float y)
Returns the pixel bounds of this
TextLayout when
rendered in a graphics with the given
FontRenderContext at the given location. |
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of this
GlyphVector when
rendered in a graphics with the given
FontRenderContext at the given location. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
RectangularShape.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Rectangle |
Path2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Rectangle |
QuadCurve2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Rectangle |
CubicCurve2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Rectangle |
Area.getBounds()
Returns a bounding
Rectangle that completely encloses
this Area . |
Rectangle |
Line2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape . |
Modifier and Type | Method and Description |
---|---|
Rectangle |
InputMethodRequests.getTextLocation(TextHitInfo offset)
Gets the location of a specified offset in the current composed text,
or of the selection in committed text.
|
Modifier and Type | Method and Description |
---|---|
void |
InputMethod.notifyClientWindowChange(Rectangle bounds)
Notifies this input method of changes in the client window
location or state.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Raster.getBounds()
Returns the bounding Rectangle of this Raster.
|
Modifier and Type | Method and Description |
---|---|
WritableRaster |
Raster.createCompatibleWritableRaster(Rectangle rect)
Create a compatible WritableRaster with location (minX, minY)
and size (width, height) specified by rect, a
new SampleModel, and a new initialized DataBuffer.
|
Raster |
BufferedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the
BufferedImage . |
Raster |
RenderedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage.
|
Constructor and Description |
---|
Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and
parent.
|
WritableRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
WritableRaster parent)
Constructs a WritableRaster with the given SampleModel, DataBuffer,
and parent.
|