lPathIterator pi= general_path.getPathIterator( new
AffineTransform() );
l
lint type = 0;
lfloat coefficients[] = new float[6];
l
lwhile ( !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