* Writes a <code>GeometryCollection</code> object.
*
* @param o The <code>LineString</code> to be encoded.
*/
public void writeObject(Object o, GraphicsDocument document, boolean asChild) throws RenderException {
GeometryCollection coll = (GeometryCollection) o;
document.writeElement("path", asChild);
document.writeAttribute("fill-rule", "evenodd");
document.writeAttributeStart("d");
for (int i = 0; i < coll.getNumGeometries(); i++) {
document.writeObject(coll.getGeometryN(i), true); // TODO delegate to appropriate writers, is this correct?
}
document.writeAttributeEnd();
}