*
* @see org.locationtech.udig.style.StyleConfigurator#apply()
*/
private void apply() {
PointSymbolizer symbolizer = (PointSymbolizer) getContent();
StyleBuilder styleBuilder = getStyleBuilder();
Graphic g = symbolizer.getGraphic();
Mark[] mark = new Mark[1];
mark[0] = styleBuilder.createMark(markerType.getText());
RGB colour = markerColour.getColorValue();
if (markerEnabled.getSelection()) {
mark[0].setFill(styleBuilder
.createFill(new Color(colour.red, colour.green, colour.blue)));
mark[0].getFill().setOpacity(
styleBuilder.literalExpression(markerOpacity.getSelection()
/ opacityMaxValueFloat));
} else {
mark[0].setFill(null);
}
colour = borderColour.getColorValue();
g.setSize(styleBuilder.literalExpression(new Integer(markerWidth.getSelection())
.doubleValue()));
colour = borderColour.getColorValue();
if (borderEnabled.getSelection()) {
mark[0].setStroke(styleBuilder.createStroke(new Color(colour.red, colour.green,
colour.blue), (new Integer(borderWidth.getSelection())).doubleValue()));
mark[0].getStroke().setOpacity(
styleBuilder.literalExpression(borderOpacity.getSelection()
/ opacityMaxValueFloat));
} else {
mark[0].setStroke(null);
}
g.setMarks(mark);