Examples of StyleBlackboard


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

        IGeoResource resource = layer.getGeoResource();
        if (!resource.canResolve(FeatureSource.class)) {
            return;
        }

        StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
        style = (Style) styleBlackboard.get(SLDContent.ID);
        if (style == null) {
            style = Utilities.createDefaultPolygonStyle();
        }
        DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
        dsv.visit(style);
View Full Code Here

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

        for (IGeoResource exportedResource : exported) {
          try {
            Layer createLayer = layerFactory
                .createLayer(exportedResource);
            StyleBlackboard clone = (StyleBlackboard) found
                .getStyleBlackboard().clone();
            createLayer.setStyleBlackboard(clone);
            newLayers.add(createLayer);
          } catch (IOException e) {
            throw (RuntimeException) new RuntimeException()
View Full Code Here

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

        noFeatureLabel.setText(Messages.SimpleLineEditorPage_0);

        StyleLayer layer = getSelectedLayer();
        IGeoResource resource = layer.getGeoResource();
        if (resource.canResolve(FeatureSource.class)) {
            StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
            oldStyle = (Style) styleBlackboard.get(SLDContent.ID);
            if (oldStyle == null) {
                oldStyle = Utilities.createDefaultLineStyle();
            }
           
            DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
View Full Code Here

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

       
        newStyle.setName(layer.getName());

        setStyle(newStyle);

        StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
        styleBlackboard.put(SLDContent.ID, newStyle);
    }
View Full Code Here

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

        IGeoResource resource = layer.getGeoResource();
        if (!resource.canResolve(FeatureSource.class)) {
            return;
        }

        StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
        oldStyle = (Style) styleBlackboard.get(SLDContent.ID);
        if (oldStyle == null) {
            oldStyle = Utilities.createDefaultLineStyle();
        }
       
        DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
View Full Code Here

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

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetStyleBlackboard(StyleBlackboard newStyleBlackboard,
            NotificationChain msgs) {
        StyleBlackboard oldStyleBlackboard = styleBlackboard;
        styleBlackboard = newStyleBlackboard;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.LAYER__STYLE_BLACKBOARD, oldStyleBlackboard, newStyleBlackboard);
            if (msgs == null)
View Full Code Here

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

        for (IGeoResource exportedResource : exported) {
          try {
            Layer createLayer = layerFactory
                .createLayer(exportedResource);
            StyleBlackboard clone = (StyleBlackboard) found
                .getStyleBlackboard().clone();
            createLayer.setStyleBlackboard(clone);
            newLayers.add(createLayer);
          } catch (IOException e) {
            throw (RuntimeException) new RuntimeException()
View Full Code Here

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

    }

    @Override
    public void synchronize() {
       
        StyleBlackboard styleBlackboard = (StyleBlackboard) getStyleBlackboard();

        // grab the style defined by the user
        Style style = (Style) styleBlackboard.get( SLDContent.ID );
        if (style == null) {
            style = createDefaultStyle();
           
            //put style back on blackboard
            getStyleBlackboard().put(SLDContent.ID, style);
View Full Code Here

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

     * @return Filter, or {@link Filter#INCLUDE} if not available
     */
    Filter getDataQueryFilter(){
        Layer layer = getElement(Layer.class);
        if( layer != null ){
            StyleBlackboard blackboard = layer.getStyleBlackboard();
            Object dataQuery = blackboard.get( ProjectBlackboardConstants.LAYER__DATA_QUERY );
            if( dataQuery instanceof Filter ){
                return (Filter) dataQuery;
            }
            if( dataQuery instanceof Query){
                Query query = (Query) dataQuery;
View Full Code Here

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

        Filter stored = getDataQueryFilter();
        Filter current = filter.getFilter();
        if(!IFilterViewer.same(stored,  current)){
            Layer layer = getElement(Layer.class);
            if( layer != null ){
                StyleBlackboard blackboard = layer.getStyleBlackboard();
                blackboard.put(ProjectBlackboardConstants.LAYER__DATA_QUERY, current );
                layer.refresh(null); // force redraw?
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.