Hello everybody,
I've done a little program just to see how PathIterator works. The
problem I have is that isDone() doesn't seem to ever return true.
The code looks like this:
Ellipse2D.Double ellipse = new Ellipse2D.Double();
ellipse.setFrame (50,50,300,300);
Area area = new Area(ellipse);
double[] coords = new double[6];
PathIterator pathIterator = area.getPathIterator(null,1.0);
while (! pathIterator.isDone()){
System.out.println("segment type: " + type );
pathIterator.next();
}
... itdoen't work. It falls into an infinite loop.
Can anyone tell me the reason for this?
Thanks
Ros
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/