SArea area = (SArea) shape;
Area jarea = area.toArea();
PathIterator it = jarea.getPathIterator(null);
while(!it.isDone()) {
double[] coords = new double[6];
int n = it.currentSegment(coords);
if(n == PathIterator.SEG_MOVETO) {
out.start("move","x",""+coords[0],"y",""+coords[1]).end();
}
if(n == PathIterator.SEG_LINETO) {
out.start("lineto","x",""+coords[0],"y",""+coords[1]).end();