Package org.locationtech.udig.project.internal.render

Examples of org.locationtech.udig.project.internal.render.RenderManager


     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetRenderManagerInternal(RenderManager newRenderManagerInternal,
            NotificationChain msgs) {
        RenderManager oldRenderManagerInternal = renderManagerInternal;
        renderManagerInternal = newRenderManagerInternal;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__RENDER_MANAGER_INTERNAL, oldRenderManagerInternal,
                    newRenderManagerInternal);
View Full Code Here


                @Override
                public void refreshImage() {
                    //do nothing
                }
            });
        RenderManager rm=map.getRenderManagerInternal();
        rm.setMapDisplay(new TestMapDisplay(displaySize));
        rm.getRendererCreator().getLayers().add(layer);
           
            map.getViewportModelInternal().setCRS(layer.getCRS());
           
            final Runnable job = new Runnable() {
                @Override
                public void run() {
                    map.getViewportModelInternal().zoomToExtent();
                }
            };
            final Thread jobThread = new Thread(job);
            jobThread.start();
            jobThread.join();
           
        MultiLayerRenderer renderer=(MultiLayerRenderer) RenderFactory.eINSTANCE.createCompositeRenderer();
        RenderContext context=new CompositeRenderContextImpl();
        context.setRenderManagerInternal(rm);
        context.setMapInternal(map);
            context.setGeoResourceInternal(layer.getGeoResources().get(0));
            context.setLayerInternal(layer);
        renderer.setContext(context);
        context = rm.getRendererCreator().getConfiguration().iterator().next();
        ((CompositeRenderContext) renderer.getContext()).addContexts(Collections.singleton(context));
        RenderExecutor ex=RenderFactory.eINSTANCE.createRenderExecutor(renderer);
        rm.setRenderExecutor(ex);
        }
    return map;
  }
View Full Code Here

    }
  }

  @SuppressWarnings("unchecked")
  private void assertion(Map map, int expectedlayers) {
    RenderManager renderManagerInternal = map.getRenderManagerInternal();
        List<IRenderer> renderer = renderManagerInternal.getRenderers();
    for (IRenderer renderer2 : renderer) {
      assertNotNull(renderer2.getContext());
    }

    final int[] countedRenderers=new int[1];
        countedRenderers[0]=0;
        renderManagerInternal.getRenderExecutor().visit(new ExecutorVisitor(){

            public void visit( RenderExecutor executor ) {
                countedRenderers[0]++;
            }
View Full Code Here

                executor.stopRendering();
                context2.setStatus(ILayer.DONE);
                context2.setStatusMessage(""); //$NON-NLS-1$
                executor.setState(NEVER);
            } else {
                RenderManager renderManager = (RenderManager) layer.getMapInternal()
                        .getRenderManager();
                if (renderManager != null) {
                    renderManager.refreshImage();
                }
            }
        }
View Full Code Here

            RenderContext context2 = executor.getContext();
            context2.getLabelPainter().enableLayer(context2.getLayer().getID().toString());
            if (executor.getState() == IRenderer.RENDERING)
                return;
            if (executor.getState() != IRenderer.DONE || executor.dirty) {
                RenderManager renderManager = (RenderManager) layer.getMapInternal()
                        .getRenderManager();
                renderManager.refresh(layer, null); //ensures the entire layer and all tiles/selection layers are refreshed
                //executor.getRenderer().setState(RENDER_REQUEST);
            } else {
                RenderManager renderManager = (RenderManager) layer.getMapInternal()
                        .getRenderManager();
                if (renderManager != null) {
                    renderManager.refreshImage();
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.render.RenderManager

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.