| Package | Description |
|---|---|
| noawt.java.awt | |
| noawt.java.awt.geom |
Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.
|
| Modifier and Type | Method and Description |
|---|---|
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
Computes the intersection of this
Rectangle with the specified
Rectangle.
|
Rectangle |
Rectangle.union(Rectangle
Computes the union of this
Rectangle with the specified
Rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Rectangle.add(Rectangle
Adds a
Rectangle to this
Rectangle.
|
boolean |
Rectangle.contains(Rectangle
Checks whether or not this
Rectangle entirely contains the specified
Rectangle.
|
Rectangle |
Rectangle.intersection(Rectangle
Computes the intersection of this
Rectangle with the specified
Rectangle.
|
boolean |
Rectangle.intersects(Rectangle
Determines whether or not this
Rectangle and the specified
Rectangle intersect.
|
void |
Rectangle.setBounds(Rectangle
Sets the bounding
Rectangle of this
Rectangle to match the specified
Rectangle.
|
Rectangle |
Rectangle.union(Rectangle
Computes the union of this
Rectangle with the specified
Rectangle.
|
| Constructor and Description | |
|---|---|
Rectangle(Rectangle
Constructs a new
Rectangle, initialized to match the values of the specified
Rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Area.getBounds()
Returns a bounding
Rectangle that completely encloses this
Area.
|
Rectangle |
RectangularShape.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 |
Line2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape.
|
Rectangle |
Path2D.getBounds()
Returns an integer
Rectangle that completely encloses the
Shape.
|