Package org.locationtech.udig.ui.graphics

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.dispose()


     */
    public void drawDirect( Image image, Display display, SimpleFeature feature, Style style ) {

        ViewportGraphics graphics = createSWTGraphics(image, display);
        drawFeature(graphics, feature, style, new AffineTransform());
        graphics.dispose();
    }

    public void drawDirect( Image image, Display display, SimpleFeature feature, Rule rule ) {
        AffineTransform worldToScreenTransform = new AffineTransform();

View Full Code Here


    public void drawDirect( Image image, Display display, SimpleFeature feature, Rule rule ) {
        AffineTransform worldToScreenTransform = new AffineTransform();

        ViewportGraphics graphics = createSWTGraphics(image, display);
        drawFeature(graphics, feature, worldToScreenTransform, false, getSymbolizers(rule), null);
        graphics.dispose();
    }

    public void drawDirect( BufferedImage image, SimpleFeature feature, Rule rule ) {
        AffineTransform worldToScreenTransform = new AffineTransform();
        ViewportGraphics graphics = createGraphics(image.createGraphics());
View Full Code Here

    public void drawDirect( BufferedImage image, SimpleFeature feature, Rule rule ) {
        AffineTransform worldToScreenTransform = new AffineTransform();
        ViewportGraphics graphics = createGraphics(image.createGraphics());
        drawFeature(graphics, feature, worldToScreenTransform, false, getSymbolizers(rule), null);
        graphics.dispose();
    }

    /**
     *
     * @param image
View Full Code Here

     */
    public void drawDirect( Image image, Display display, SimpleFeature feature, Style style ){

        ViewportGraphics graphics = createSWTGraphics(image, display);
    drawFeature( graphics, feature, style, new AffineTransform() );
    graphics.dispose();
    }
   
    public void drawDirect( Image image, Display display, SimpleFeature feature,
            Rule rule ){
        AffineTransform worldToScreenTransform = new AffineTransform();
View Full Code Here

        AffineTransform worldToScreenTransform = new AffineTransform();
       
        ViewportGraphics graphics = createSWTGraphics(image, display);
    drawFeature( graphics, feature,
                worldToScreenTransform, false, getSymbolizers(rule), null);
    graphics.dispose();
    }

    /**
     *
     * @param image
View Full Code Here

            } else {
              swtGraphics = new NonAdvancedSWTGraphics(buffer, display);
            }

            painter.paint(swtGraphics, swtImage, minWidth, minHeight);
            swtGraphics.dispose();

            gc.drawImage(buffer, 0, 0);
        }else{

          ViewportGraphics swtGraphics = null;
View Full Code Here

            swtGraphics = new SWTGraphics(gc, display);
          } else {
            swtGraphics = new NonAdvancedSWTGraphics(gc, display, null);
          }
            painter.paint(swtGraphics, swtImage, minWidth, minHeight);
            swtGraphics.dispose();
        }
    }

    private boolean clipContainsRepaintRequest( Rectangle clipping ) {
View Full Code Here

            }
            if (renderManager.getViewportModelInternal().isBoundsChanging() ) {
                swtGraphics.getGraphics(GC.class).setAdvanced(false);
            }
            painter.paint(swtGraphics, tiles, minWidth, minHeight);
            swtGraphics.dispose();

            gc.drawImage(buffer, 0, 0);
        }else{

          ViewportGraphics swtGraphics = null;
View Full Code Here

          }
          if (renderManager.getViewportModelInternal().isBoundsChanging() ) {
              swtGraphics.getGraphics(GC.class).setAdvanced(false);
          }
            painter.paint(swtGraphics, tiles, minWidth, minHeight);
            swtGraphics.dispose();
        }
    }

    private boolean clipContainsRepaintRequest( Rectangle clipping ) {
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.