while(!theIterator.isDone()){
//while not done
theType = theIterator.currentSegment(
theData);
//Populate a segment of the new
// GeneralPath object.
switch(theType){
//... code deleted for brevity ...
}//end switch
theIterator.next();
}//end while loop
Figure 10
|