Package org.locationtech.udig.project.internal

Examples of org.locationtech.udig.project.internal.SetDefaultStyleProcessor


        if( layer.getStyleBlackboard().getContent().isEmpty()){
            IGeoResource geoResource = layer.getGeoResource();
            if( geoResource == null ){
                throw new NullPointerException("Layer requires GeoResource to determine default style");
            }
            SetDefaultStyleProcessor defaultStyleProcessor = createDefaultStyles(geoResource, layer);
            defaultStyleProcessor.run();
        }
    }
View Full Code Here


     * @param theResource
     * @param theLayer
     * @return
     */
    private SetDefaultStyleProcessor createDefaultStyles( final IGeoResource theResource, final Layer theLayer ) {
        SetDefaultStyleProcessor scp = new SetDefaultStyleProcessor(theResource, theLayer);
        return scp;
    }
View Full Code Here

        return false;
    }
    private void doDefaults() {
            StyleLayer layer = styleEditorDialog.selectedLayer;
            layer.getStyleBlackboard().clear();
            SetDefaultStyleProcessor p = new SetDefaultStyleProcessor(layer.getGeoResource(), layer);
            p.run();
            Style style = (Style) layer.getStyleBlackboard().get(SLDContent.ID);
            StyledLayerDescriptor oldSLD=null;
            if(style!=null){
                oldSLD = this.styleEditorDialog.getSLD();
            }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.SetDefaultStyleProcessor

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.