this.textService = textService;
factory = new GeometryFactory();
}
public void writeObject(Object object, GraphicsDocument document, boolean asChild) throws RenderException {
InternalTileImpl tile = (InternalTileImpl) object;
FeatureStyleInfo bgStyle = labelStyle.getBackgroundStyle();
document.writeElement("vml:group", asChild);
document.writeId("labels." + tile.getCode().toString());
document.writeAttribute("coordsize", coordWidth + "," + coordHeight);
document.writeAttribute("style", "WIDTH: " + coordWidth + "; HEIGHT: " + coordHeight);
// the shapetype
document.writeElement("vml:shapetype", true);
document.writeAttribute("id", "labels." + tile.getCode().toString() + ".style");
document.writeAttribute("style", "WIDTH: 100%; HEIGHT: 100%");
document.writeAttribute("style", "VISIBILITY: hidden");
document.writeAttribute("filled", "f");
document.writeAttribute("stroked", "f");
document.writeAttribute("coordsize", coordWidth + "," + coordHeight);
// up to shapetype
document.closeElement();
for (InternalFeature f : tile.getFeatures()) {
InternalFeatureImpl feature = (InternalFeatureImpl) f;
Coordinate pos = geoService.calcDefaultLabelPosition(feature);
if (pos == null) {
continue;
}