Package org.locationtech.udig.project.render

Examples of org.locationtech.udig.project.render.ILabelPainter.clear()


               
                monitor.beginTask("Rendering map", sortedContexts.size());
                RenderContext mainContext = decisive.getContext();

                ILabelPainter labelPainter = mainContext.getLabelPainter();
                labelPainter.clear();
                labelPainter.start();
               
                Dimension displaySize = params.destinationSize;
                Iterator<RenderContext> iter = sortedContexts.iterator();
                while (iter.hasNext()) {
View Full Code Here


                    }
                }
                labelPainter.end(
                        params.graphics,
                        new Rectangle(displaySize));
                labelPainter.clear();
            }

            private String getLayerId(ILayer layer ) {
                String layerId = layer.getID().toString();
                if ( layer instanceof SelectionLayer )
View Full Code Here

                //Only if it as a usual layer's renderer
                ILabelPainter labelPainter = getContext().getLabelPainter();
                String layerId = renderingLayer.getID().toString();
                if (getContext().getLayer() instanceof SelectionLayer)
                    layerId = layerId + "-Selection"; //$NON-NLS-1$
                labelPainter.clear(layerId);
            }
        } catch (Exception exc) {
            exc.printStackTrace();
        }
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.