Package org.locationtech.udig.style.sld

Examples of org.locationtech.udig.style.sld.SLDContentManager


        RasterSymbolizer rasterSymbolizer = styleFactory.createRasterSymbolizer();
        Rule rule = styleFactory.createRule();
        rule.setSymbolizers(new Symbolizer[]{rasterSymbolizer});

        Style style = styleBuilder.createStyle();
        SLDContentManager sldContentManager = new SLDContentManager(styleBuilder, style);
        sldContentManager.addSymbolizer(rasterSymbolizer);

        // set the feature type name
        FeatureTypeStyle fts = sldContentManager.getDefaultFeatureTypeStyle();
        fts.setFeatureTypeName(SLDs.GENERIC_FEATURE_TYPENAME);
        fts.setName("simple"); //$NON-NLS-1$
        fts.setSemanticTypeIdentifiers(new String[]{"generic:geometry", "simple"}); //$NON-NLS-1$ //$NON-NLS-2$

        fts.addRule(rule);
View Full Code Here


     * Callback from all the individual change listeners used to update the
     * Style with any modification done by the user.
     * @param event That caused the change; null to sync all controls
     */
    void sync( EventObject event ){
        SLDContentManager content = new SLDContentManager( sb, getContainer().getStyle() );       
        LineSymbolizer lineSymbolizer = content.getSymbolizer( LineSymbolizer.class );
       
        Object source = event != null ? event.getSource() : null;       
        if( source == null || source == size ){
            toStroke( lineSymbolizer ).setWidth( size.getInput() );
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.style.sld.SLDContentManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.