Examples of addMapCompositionListener()


Examples of org.locationtech.udig.project.IMap.addMapCompositionListener()

        Display.getDefault().asyncExec(new Runnable(){
            public void run() {
                IMap activeMap = ApplicationGIS.getActiveMap();
                ViewportModel viewportModel = (ViewportModel) activeMap.getViewportModel();
                activeMap.addMapListener(NavigationView.this);
                activeMap.addMapCompositionListener(NavigationView.this);

                ReferencedEnvelope bounds = viewportModel.getBounds();

                double west = bounds.getMinX();
                double east = bounds.getMaxX();
View Full Code Here

Examples of org.locationtech.udig.project.IMap.addMapCompositionListener()

        });
    }

    private void addMapListener() {
        IMap map = ApplicationGIS.getActiveMap();
        map.addMapCompositionListener(mapListener);
    }

    private void addLayerListener( ILayer layer ) {
        layer.addListener(layerListener);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.Map.addMapCompositionListener()

        Map activeMap = ApplicationGISInternal.getActiveMap();


        final int[] numberLayerAdds=new int[1];
        numberLayerAdds[0]=0;
        activeMap.addMapCompositionListener(new IMapCompositionListener(){

            public void changed( MapCompositionEvent event ) {
                numberLayerAdds[0]++;
            }
           
View Full Code Here

Examples of org.locationtech.udig.project.internal.Map.addMapCompositionListener()

        Map activeMap = ApplicationGISInternal.getActiveMap();


        final int[] numberLayerAdds=new int[1];
        numberLayerAdds[0]=0;
        activeMap.addMapCompositionListener(new IMapCompositionListener(){

            public void changed( MapCompositionEvent event ) {
                numberLayerAdds[0]++;
            }
           
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.