> I'm pleased to say I've managed to get a working result with David's
> suggestion of using a FlatteningPathIterator but, Jim, I'll certainly
> have a look at your very fulsome example too!
Please don't use the FlatteningPathIterator directly. It is more lines
of code for you to write and bypasses any logic the Shape may have to
flatten the path more efficiently than that utility class can. Simply
call getPathIterator(tx, flat) instead of getPathIterator(tx) - the
Shape object will do the work for you.
There is nothing functionally wrong with using the FPI class directly,
but that class is intended as a convenience for the Shape object to use
to satisfy the getPathIterator(tx, flat) method on your behalf, not for
callers to manually impose their own method of flattening on the Shape...
...jim
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/