Returns an iteration object that defines the boundary of the
flattened
Rectangle2D
. Since rectangles are already
flat, the
flatness
parameter is ignored.
The iterator for this class is multi-threaded safe, which means
that this
Rectangle2D
class guarantees that
modifications to the geometry of this
Rectangle2D
object do not affect any iterations of that geometry that
are already in process.
Returns:
the
PathIterator
object that returns the
geometry of the outline of this
Rectangle2D
, one segment at a time.
Parameters:
-
at - an optional
AffineTransform
to be applied to
the coordinates as they are returned in the iteration, or
null
if untransformed coordinates are desired
-
flatness - the maximum distance that the line segments used to
approximate the curved segments are allowed to deviate from any
point on the original curve. Since rectangles are already flat,
the
flatness
parameter is ignored.
Since:
1.2