| 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.
|
| noawt.sun.awt.geom |
| Modifier and Type | Class and Description |
|---|---|
class |
Rectangle
A
Rectangle specifies an area in a coordinate space that is enclosed by the
Rectangle object's upper-left point
(x,y) in the coordinate space, its width, and its height.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
Rectangle.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Shape.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Rectangle.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Shape.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
Rectangle2D |
Rectangle.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
boolean |
Shape.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Rectangle2D
The
Double class defines a rectangle specified in double coordinates.
|
static class |
Rectangle2D
The
Float class defines a rectangle specified in float coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Rectangle2D |
Rectangle2D.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Float.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Double.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
abstract Rectangle2D |
Rectangle2D.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Float.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Double.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Area.getBounds2D()
Returns a high precision bounding
Rectangle2D that completely encloses this
Area.
|
Rectangle2D |
Rectangle2D.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Rectangle2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Rectangle2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
QuadCurve2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
QuadCurve2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
RoundRectangle2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
RoundRectangle2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
CubicCurve2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
CubicCurve2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Ellipse2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Ellipse2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Line2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Line2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Arc2D.getBounds2D()
Returns the high-precision framing rectangle of the arc.
|
Rectangle2D |
Path2D.Float.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
Path2D.Double.getBounds2D()
Returns a high precision and more accurate bounding box of the
Shape than the
getBounds method.
|
Rectangle2D |
RectangularShape.getFrame()
Returns the framing
Rectangle2D that defines the overall shape of this object.
|
protected abstract Rectangle2D |
Arc2D.makeBounds(double x, double y, double w, double h)
Constructs a
Rectangle2D of the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.
|
protected Rectangle2D |
Arc2D.Float.makeBounds(double x, double y, double w, double h)
Constructs a
Rectangle2D of the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.
|
protected Rectangle2D |
Arc2D.Double.makeBounds(double x, double y, double w, double h)
Constructs a
Rectangle2D of the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Rectangle2D.add(Rectangle2D
Adds a
Rectangle2D object to this
Rectangle2D.
|
static boolean |
Path2D.contains(PathIterator
Tests if the specified
Rectangle2D is entirely inside the closed boundary of the specified
PathIterator.
|
boolean |
Area.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
boolean |
RectangularShape.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
boolean |
QuadCurve2D.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
boolean |
CubicCurve2D.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
boolean |
Line2D.contains(Rectangle2D
Tests if the interior of this
Line2D entirely contains the specified
Rectangle2D.
|
boolean |
Arc2D.contains(Rectangle2D
Determines whether or not the interior of the arc entirely contains the specified rectangle.
|
boolean |
Path2D.contains(Rectangle2D
Tests if the interior of the
Shape entirely contains the specified
Rectangle2D.
|
abstract Rectangle2D |
Rectangle2D.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Float.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Double.createIntersection(Rectangle2D
Returns a new
Rectangle2D object representing the intersection of this
Rectangle2D with the specified
Rectangle2D.
|
abstract Rectangle2D |
Rectangle2D.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Float.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
Rectangle2D |
Rectangle2D.Double.createUnion(Rectangle2D
Returns a new
Rectangle2D object representing the union of this
Rectangle2D with the specified
Rectangle2D.
|
static void |
Rectangle2D.intersect(Rectangle2D
Intersects the pair of specified source
Rectangle2D objects and puts the result into the specified destination
Rectangle2D object.
|
static boolean |
Path2D.intersects(PathIterator
Tests if the interior of the specified
PathIterator intersects the interior of a specified
Rectangle2D.
|
boolean |
Area.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
boolean |
RectangularShape.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
boolean |
QuadCurve2D.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
boolean |
CubicCurve2D.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
boolean |
Line2D.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
boolean |
Path2D.intersects(Rectangle2D
Tests if the interior of the
Shape intersects the interior of a specified
Rectangle2D.
|
void |
Arc2D.setArc(Rectangle2D
Sets the location, size, angular extents, and closure type of this arc to the specified values.
|
void |
RectangularShape.setFrame(Rectangle2D
Sets the framing rectangle of this
Shape to be the specified
Rectangle2D.
|
void |
Rectangle2D.setRect(Rectangle2D
Sets this
Rectangle2D to be the same as the specified
Rectangle2D.
|
void |
Rectangle2D.Float.setRect(Rectangle2D
Sets this
Rectangle2D to be the same as the specified
Rectangle2D.
|
void |
Rectangle2D.Double.setRect(Rectangle2D
Sets this
Rectangle2D to be the same as the specified
Rectangle2D.
|
static void |
Rectangle2D.union(Rectangle2D
Unions the pair of source
Rectangle2D objects and puts the result into the specified destination
Rectangle2D object.
|
| Constructor and Description | |
|---|---|
Double(Rectangle2D
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
|
|
Float(Rectangle2D
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Curve.enlarge(Rectangle2D
|