Package org.locationtech.udig.aoi

Examples of org.locationtech.udig.aoi.AOIProxy


    }

    private void updateAOIService( ILayer layer, Geometry newAOI )
            throws IOException {
        IAOIService aOIService = PlatformGIS.getAOIService();
        AOIProxy aoiLayerProxy = aOIService.findProxy(AOI_LAYER_ID);
       
        AOILayerStrategy aOILayerStrategy = (AOILayerStrategy)aoiLayerProxy.getStrategy();
        aOILayerStrategy.setActiveLayer(layer);
        aOILayerStrategy.setGeometry(newAOI);
       
        // if the current stragegy does not equal the bounary layer strategy set it
        if (!aOIService.getProxy().equals(aoiLayerProxy)) {
View Full Code Here


    }*/
  }

  @Test
  public void testCRSStrategy() {
        AOIProxy proxy = aOIService.findProxy("org.locationtech.udig.project.ui.crsAOI");
        aOIService.setProxy(proxy);
        String id = aOIService.getProxy().getId();
        assertEquals("org.locationtech.udig.project.ui.crsAOI", id);
       
        assertNull(aOIService.getExtent());
View Full Code Here

  }

  @Test
  public void testScreenStrategy() {
       
      AOIProxy proxy = aOIService.findProxy("org.locationtech.udig.project.ui.screenAOI");
        aOIService.setProxy(proxy);
        String id = aOIService.getProxy().getId();
        assertEquals("org.locationtech.udig.project.ui.screenAOI", id);
       
        assertNull(aOIService.getExtent());
View Full Code Here

        // process the extension point here to get the list of Strategies
        ExtensionPointProcessor processAOIItems = new ExtensionPointProcessor(){
            @Override
            public void process( IExtension extension, IConfigurationElement element )
                    throws Exception {
                AOIProxy proxy = new AOIProxy(element);
                proxyList.add(proxy);
                /*
                 * String className = element.getAttribute("class"); if( currentClassName != null &&
                 * currentClassName.equals( className )){ initialStrategy = strategy; }
                 */
 
View Full Code Here

        if (comboViewer == null || disposed) {
            listenService(false);
            return; // the view has shutdown!
        }
       
        AOIProxy current = getSelected();
        // check combo
        if (current != selected) {
            try {
                listenCombo(false);
                comboViewer.setSelection(new StructuredSelection(selected), true);
View Full Code Here

                return super.getText(element);
            }
        });
        comboViewer.setInput(aOIService.getProxyList());
        // set the current strategy
        AOIProxy proxy = aOIService.getProxy();
        if (proxy == null) {
            proxy = aOIService.getDefault();
        }
        comboViewer.setSelection(new StructuredSelection(proxy));
View Full Code Here

TOP

Related Classes of org.locationtech.udig.aoi.AOIProxy

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.