Examples of IStyleBlackboard


Examples of org.locationtech.udig.project.IStyleBlackboard

        }

        if (isProcessing()) {
            addRegionListener();
            ILayer processingRegionLayer = OmsBoxPlugin.getDefault().getProcessingRegionMapGraphic();
            IStyleBlackboard blackboard = processingRegionLayer.getStyleBlackboard();
            Object object = blackboard.get(ProcessingRegionStyleContent.ID);
            if (object instanceof ProcessingRegionStyle) {
                ProcessingRegionStyle processingStyle = (ProcessingRegionStyle) object;
                setRegion(processingStyle);
            }
        }
View Full Code Here

Examples of org.locationtech.udig.project.IStyleBlackboard

    }

    private void removeRegionListener() {
        if (currentBlackboardListener != null) {
            ILayer processingRegionLayer = OmsBoxPlugin.getDefault().getProcessingRegionMapGraphic();
            IStyleBlackboard blackboard = processingRegionLayer.getStyleBlackboard();
            blackboard.removeListener(currentBlackboardListener);
        }
    }
View Full Code Here

Examples of org.locationtech.udig.project.IStyleBlackboard

        }
    }

    private void addRegionListener() {
        ILayer processingRegionLayer = OmsBoxPlugin.getDefault().getProcessingRegionMapGraphic();
        IStyleBlackboard blackboard = processingRegionLayer.getStyleBlackboard();
        currentBlackboardListener = new IBlackboardListener(){
            public void blackBoardCleared( IBlackboard source ) {
            }
            public void blackBoardChanged( BlackboardEvent event ) {
                Object key = event.getKey();
                if (key.equals(ProcessingRegionStyleContent.ID)) {
                    Object newValue = event.getNewValue();
                    if (newValue instanceof ProcessingRegionStyle) {
                        ProcessingRegionStyle processingStyle = (ProcessingRegionStyle) newValue;
                        setRegion(processingStyle);
                    }
                }
            }
        };
        blackboard.addListener(currentBlackboardListener);
    }
View Full Code Here

Examples of org.locationtech.udig.project.IStyleBlackboard

            return;       
        ReferencedEnvelope bounds = getRenderBounds();
        monitor.subTask("connecting");
        CSV csv = resource.resolve(CSV.class, null);
        // LOOK UP STYLE
        IStyleBlackboard style = layer.getStyleBlackboard();
        Color color = (Color) style.get( ColorStyle.ID );

        // DATA TO WORLD
        CoordinateReferenceSystem dataCRS = layer.getCRS();
        CoordinateReferenceSystem worldCRS = context.getCRS();
        MathTransform dataToWorld = CRS.findMathTransform(dataCRS, worldCRS, false);
View Full Code Here

Examples of org.locationtech.udig.project.IStyleBlackboard

    return null;
  }

  public IStyleBlackboard getStyleBlackboard() {
    // TODO Auto-generated method stub
    return new IStyleBlackboard() {

            @Override
            public boolean addListener(IBlackboardListener listener) {
                // TODO Auto-generated method stub
                return false;
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.