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

Examples of org.locationtech.udig.project.internal.render.impl.InternalRenderMetricsFactory.InternalRenderMetrics


                context.setMapInternal(map);
                context.setRenderManagerInternal(rm);
                context.setLayerInternal(layer);
                context.setGeoResourceInternal(resource);
                               
                InternalRenderMetrics metrics = metricsFactory.createMetrics(context);
                metrics.delegate.setId(element.getNamespaceIdentifier()+"."+element.getAttribute("id")); //$NON-NLS-1$ //$NON-NLS-2$)
                rFactories.add(metrics);
            }
        } catch (CoreException e) {
            throw (RuntimeException)new RuntimeException().initCause(e);
View Full Code Here


        }
        List<InternalRenderMetrics> list = layerToMetricsFactoryMap.get(context.getLayerInternal());
        if( list.isEmpty() ){
            return getPlaceHolder(context); // layer won't be rendered
        }
        InternalRenderMetrics internalRenderMetrics=null;
        for( Iterator<InternalRenderMetrics> iter = list.iterator();
                    iter.hasNext() && internalRenderMetrics==null; ) {
            internalRenderMetrics = iter.next();
            boolean canRender;
            try {
                canRender = internalRenderMetrics.getRenderMetricsFactory().canRender(context);
                if( canRender ) {
                    Renderer createRenderer = internalRenderMetrics.createRenderer();
                    createRenderer.setContext(context);
                    return createRenderer;
                }
            } catch (Throwable e) {
                internalRenderMetrics=null;
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.render.impl.InternalRenderMetricsFactory.InternalRenderMetrics

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.