| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(double x, double y)
Implements java. Tests if the specified coordinates are inside the boundary of the
|
| public boolean | contains(Point2D p)
Implements java. Tests if a specified |
| public boolean | contains(double x, double y, double w, double h)
Implements java. Tests if the interior of the |
| public boolean | contains(Rectangle2D r)
Implements java. Tests if the interior of the |
| public Rectangle | getBounds()
Implements java. Returns an integer |
| public Rectangle2D | getBounds2D()
Implements java. Returns a high precision and more accurate bounding box of
the |
| public PathIterator | getPathIterator(AffineTransform at)
Implements java. Returns an iterator object that iterates along the
|
| public PathIterator | getPathIterator(AffineTransform at, double flatness)
Implements java. Returns an iterator object that iterates along the |
| public boolean | intersects(double x, double y, double w, double h)
Implements java. Tests if the interior of the |
| public boolean | intersects(Rectangle2D r)
Implements java. Tests if the interior of the |
| delegate | back to summary |
|---|---|
| pack-priv Shape delegate | |
| DelegatingShape | back to summary |
|---|---|
| public DelegatingShape(Shape delegate) | |
| contains | back to summary |
|---|---|
| public boolean contains(double x, double y) Implements java. Doc from java. Tests if the specified coordinates are inside the boundary of the
| |
| contains | back to summary |
|---|---|
| public boolean contains(Point2D p) Implements java. Doc from java. Tests if a specified | |
| contains | back to summary |
|---|---|
| public boolean contains(double x, double y, double w, double h) Implements java. Doc from java. Tests if the interior of the
The
Shapes this method might
return false even though the Shape contains
the rectangular area.
The Area class performs
more accurate geometric computations than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Rectangle2D r) Implements java. Doc from java. Tests if the interior of the
Shapes this method might
return false even though the Shape contains
the Rectangle2D.
The Area class performs
more accurate geometric computations than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements java. Doc from java. Returns an integer
Note that the
definition of insideness can lead to situations where points
on the defining outline of the
If a
If a
| |
| getBounds2D | back to summary |
|---|---|
| public Rectangle2D getBounds2D() Implements java. Doc from java. Returns a high precision and more accurate bounding box of
the
Note that the
definition of insideness can lead to situations where points
on the defining outline of the
If a
If a
| |
| getPathIterator | back to summary |
|---|---|
| public PathIterator getPathIterator(AffineTransform at) Implements java. Doc from java. Returns an iterator object that iterates along the
Each call to this method returns a fresh
It is recommended, but not guaranteed, that objects
implementing the | |
| getPathIterator | back to summary |
|---|---|
| public PathIterator getPathIterator(AffineTransform at, double flatness) Implements java. Doc from java. Returns an iterator object that iterates along the Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types are returned by the iterator.
If an optional
The amount of subdivision of the curved segments is controlled
by the
Each call to this method returns a fresh
It is recommended, but not guaranteed, that objects
implementing the | |
| intersects | back to summary |
|---|---|
| public boolean intersects(double x, double y, double w, double h) Implements java. Doc from java. Tests if the interior of the
The
Shapes this method might
return true even though the rectangular area does not
intersect the Shape.
The Area class performs
more accurate computations of geometric intersection than most
Shape objects and therefore can be used if a more precise
answer is required.
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(Rectangle2D r) Implements java. Doc from java. Tests if the interior of the
Shapes this method might
return true even though the Rectangle2D does not
intersect the Shape.
The Area class performs
more accurate computations of geometric intersection than most
Shape objects and therefore can be used if a more precise
answer is required.
| |