The Polygon class encapsulates a description of a
closed, two-dimensional region within a coordinate space. This
region is bounded by an arbitrary number of line segments, each of
which is one side of the polygon. Internally, a polygon
comprises of a list of (x, y) coordinate pairs,
where each pair defines a vertex of the polygon, and two
successive pairs are the endpoints of a line that is a side of the
polygon. The first and final pairs of (x, y)
points are joined by a line segment that closes the polygon.
If an operation that calculates the bounding box of this polygon
has already been performed, such as getBounds
or contains, then this method updates the bounding box.
Gets the bounding box of this polygon. The bounding box is the
smallest rectangle whose sides are parallel to the x and
y axes of the coordinate space, and that can completely
contain the polygon.
Returns:
a rectangle that defines the bounds of this polygon.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.