Iterating over GeneralPath
l PathIterator pi= general_path.getPathIterator( new AffineTransform() );
l
l int type = 0;
l float coefficients[] = new float[6];
l
l while ( !pi.isDone() ) {
l type = pi.currentSegment( coefficients );
l
l switch ( type ) {
l case pi.SEG_CUBICTO :
l Util.printArray( coefficients, 6 );
l break;
l
l case pi.SEG_LINETO :
l Util.printArray( coefficients, 2 );
l break;
l ...
l default:
l System.out.println( "Error" );
l }
l
l pi.next();
l}
l