use of org.geotools.styling.Displacement in project sldeditor by robward-scisys.
the class PolygonSymbolizerDetails method updateSymbol.
/**
* Update symbol.
*/
private void updateSymbol() {
if (!Controller.getInstance().isPopulating()) {
Expression geometryField = ExtractGeometryField.getGeometryField(fieldConfigVisitor);
Expression perpendicularOffset = fieldConfigVisitor.getExpression(FieldIdEnum.PERPENDICULAR_OFFSET);
//
// Displacement
//
Displacement displacement = null;
StandardData standardData = getStandardData();
PolygonSymbolizer polygonSymbolizer = (PolygonSymbolizer) SelectedSymbol.getInstance().getSymbolizer();
if (polygonSymbolizer != null) {
polygonSymbolizer.setName(standardData.name);
polygonSymbolizer.setDescription(standardData.description);
polygonSymbolizer.setUnitOfMeasure(standardData.unit);
polygonSymbolizer.setDisplacement(displacement);
polygonSymbolizer.setGeometry(geometryField);
polygonSymbolizer.setPerpendicularOffset(perpendicularOffset);
this.fireUpdateSymbol();
}
}
}
Aggregations