Search in sources :

Example 1 with SLDOutputInterface

use of com.sldeditor.common.output.SLDOutputInterface in project sldeditor by robward-scisys.

the class RenderPanelImpl method renderSymbol.

/**
 * Render symbol.
 */
/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.marker.iface.RenderSymbolInterface#renderSymbol()
     */
@Override
public void renderSymbol() {
    validSymbol = SelectedSymbol.getInstance().isValid();
    if (validSymbol) {
        StyledLayerDescriptor sld = SelectedSymbol.getInstance().getSld();
        SLDDataInterface sldData = SLDEditorFile.getInstance().getSLDData();
        if (sld != null) {
            for (SLDOutputInterface sldOutput : sldOutputList) {
                sldOutput.updatedSLD(sldData, sld);
            }
            renderSymbol((Style) renderSymbol.getRenderStyle(SelectedSymbol.getInstance()));
        } else {
            renderSymbol(null);
        }
    } else {
        repaint();
    }
}
Also used : StyledLayerDescriptor(org.geotools.styling.StyledLayerDescriptor) SLDDataInterface(com.sldeditor.common.SLDDataInterface) SLDOutputInterface(com.sldeditor.common.output.SLDOutputInterface)

Aggregations

SLDDataInterface (com.sldeditor.common.SLDDataInterface)1 SLDOutputInterface (com.sldeditor.common.output.SLDOutputInterface)1 StyledLayerDescriptor (org.geotools.styling.StyledLayerDescriptor)1