/** write out the raw elements of the BasicStroke */
os.writeFloat(stroke.getLineWidth());
os.writeInt(stroke.getEndCap());
os.writeInt(stroke.getLineJoin());
os.writeFloat(stroke.getMiterLimit());
os.writeObject(stroke.getDashArray());
os.writeFloat(stroke.getDashPhase());
}else if(nextObj instanceof Rectangle2D){
basicStrokes++;
/** write out a flag to indicate this is a BasicStroke object */