|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Shape
Shape interface without getPathIterator methods
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
Test if the shape contains the point (x,y) |
boolean |
contains(double x,
double y,
double w,
double h)
Test if the shape contains the rectangle with top left at (x,y), width w and height h. |
boolean |
contains(Point2D p)
Test if the shape contains the Point2D |
boolean |
contains(Rectangle2D r)
Test if the shape contains the Rectangle2D |
Rectangle |
getBounds()
Get the bounding Rectangle for the shape |
Rectangle2D |
getBounds2D()
Get the bounding Rectangle2D for the shape |
boolean |
intersects(double x,
double y,
double w,
double h)
Test if the shape intersects the rectangle with top left at (x,y), width w and height h. |
boolean |
intersects(Rectangle2D r)
Test if the shape intersects the Rectangle2D r |
| Method Detail |
|---|
Rectangle getBounds()
Rectangle2D getBounds2D()
boolean contains(double x,
double y)
x - the x co-ordinate of the pointy - the y co-ordinate of the point
boolean contains(Point2D p)
p - the Point2D
boolean intersects(double x,
double y,
double w,
double h)
x - the x-coordinate of the top left point of the rectangley - the y-coordinate of the top left point of the rectanglew - the width of the rectangleh - the height of the rectangle
boolean intersects(Rectangle2D r)
r - the Recangle2D
boolean contains(double x,
double y,
double w,
double h)
x - the x-coordinate of the top left point of the rectangley - the y-coordinate of the top left point of the rectanglew - the width of the rectangleh - the height of the rectangle
boolean contains(Rectangle2D r)
r - the Rectangle2D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||