use of org.geotoolkit.se.xml.v110.LabelPlacementType in project geotoolkit by Geomatys.
the class GTtoSE110Transformer method visit.
/**
* Transform a GT label placement in jaxb label placement.
*
* @return
*/
public LabelPlacementType visit(final LabelPlacement labelPlacement, final Object data) {
final LabelPlacementType lpt = se_factory.createLabelPlacementType();
if (labelPlacement instanceof LinePlacement) {
final LinePlacement lp = (LinePlacement) labelPlacement;
lpt.setLinePlacement(visit(lp, null));
} else if (labelPlacement instanceof PointPlacement) {
final PointPlacement pp = (PointPlacement) labelPlacement;
lpt.setPointPlacement(visit(pp, null));
}
return lpt;
}
Aggregations