|
JSR-62 (Final) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Shape
interface provides definitions for objects
that represent some form of geometric shape.
Definition of insideness:
A point is considered to lie inside a
Shape
if and only if:
Shape
boundary or
Shape
boundary and the
space immediately adjacent to the
point in the increasing X
direction is
entirely inside the boundary or
Y
direction is inside the boundary.
Method Summary | |
Rectangle |
getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Method Detail |
public Rectangle getBounds()
Rectangle
that completely encloses the
Shape
. Note that there is no guarantee that the
returned Rectangle
is the smallest bounding box that
encloses the Shape
, only that the Shape
lies entirely within the indicated Rectangle
. The
returned Rectangle
might also fail to completely
enclose the Shape
if the Shape
overflows
the limited range of the integer data type.
Rectangle
that completely encloses
the Shape
.
|
JSR-62 (Final) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |