current_path.lineTo(x[i],y[i]-ymin);
}else if( commands[i] == H ){
current_path.closePath();
//save for later use
cached_current_path.addElement(current_path);
current_path=new GeneralPath(GeneralPath.WIND_NON_ZERO);
current_path.moveTo(0,0);
}else if( commands[i] == M ){
current_path.moveTo( x[i], y[i]-ymin);