Package org.locationtech.udig.project.render

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


                if(paintLabels){
                    RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                    g.setRenderingHints(hints);
                    Dimension displaySize = getContext().getMapDisplay().getDisplaySize();
                    try {
                        cache.end(g, new Rectangle(displaySize));
                    }
                    catch( Throwable t ){
                        ProjectPlugin.trace( CompositeRenderContextImpl.class,"painting labels failed", t );
                    }
                }
View Full Code Here


                }
                if(paintLabels){
                    RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                    g.setRenderingHints(hints);
                    Dimension displaySize = getContext().getImageSize();
                    cache.end(g, new Rectangle(displaySize));
                }
                //update the context with the new image
                ((RenderContextImpl)getContext()).setImage(copy);
               
            } catch (IllegalStateException e) {
View Full Code Here

                    } finally {
                        labelPainter.endLayer(layerId, params.graphics,
                                new Rectangle(displaySize));
                    }
                }
                labelPainter.end(
                        params.graphics,
                        new Rectangle(displaySize));
                labelPainter.clear();
            }
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.