Package org.locationtech.udig.ui.graphics

Examples of org.locationtech.udig.ui.graphics.NonAdvancedSWTGraphics


     * @return Wrapper around a normal SWT Image
     */
    public static ViewportGraphics createGraphics( GC gc, Display display, Dimension displaySize ) {
        if (Platform.getOS().equals(Platform.OS_LINUX))

            return new NonAdvancedSWTGraphics(gc, display, displaySize);

        return new SWTGraphics(gc, display);
    }
View Full Code Here


     * @param display
     * @return
     */
    private ViewportGraphics createSWTGraphics( Image image, Display display ) {
        if (Platform.getOS().equals(Platform.OS_LINUX))
            return new NonAdvancedSWTGraphics(image, display);
        return new SWTGraphics(image, display);
    }
View Full Code Here

     * @return Wrapper around a normal SWT Image
     */
    public static ViewportGraphics createGraphics( GC gc, Display display, Dimension displaySize ){
        if( Platform.getOS().equals(Platform.OS_LINUX) )
         
            return new NonAdvancedSWTGraphics(gc, display, displaySize);
       
        return new SWTGraphics(gc,display );
    }
View Full Code Here

     * @param display
     * @return
     */
    private ViewportGraphics createSWTGraphics( Image image, Display display ) {
        if( Platform.getOS().equals(Platform.OS_LINUX) )
            return new NonAdvancedSWTGraphics(image, display);
        return new SWTGraphics(image, display);
    }
View Full Code Here

            ViewportGraphics swtGraphics = null;
           
            if (useAdvancedGraphics) {
              swtGraphics = new SWTGraphics(buffer, display);
            } else {
              swtGraphics = new NonAdvancedSWTGraphics(buffer, display);
            }

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

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

          ViewportGraphics swtGraphics = null;
         
          if (useAdvancedGraphics) {
            swtGraphics = new SWTGraphics(gc, display);
          } else {
            swtGraphics = new NonAdvancedSWTGraphics(gc, display, null);
          }
            painter.paint(swtGraphics, swtImage, minWidth, minHeight);
            swtGraphics.dispose();
        }
    }
View Full Code Here

            ViewportGraphics swtGraphics = null;
           
            if (useAdvancedGraphics ) {
              swtGraphics = new SWTGraphics(buffer, display);
            } else {
              swtGraphics = new NonAdvancedSWTGraphics(buffer, display);
            }
            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;
         
          if (useAdvancedGraphics ) {
            swtGraphics = new SWTGraphics(gc, display);
          } else {
            swtGraphics = new NonAdvancedSWTGraphics(gc, display, null);
          }
          if (renderManager.getViewportModelInternal().isBoundsChanging() ) {
              swtGraphics.getGraphics(GC.class).setAdvanced(false);
          }
            painter.paint(swtGraphics, tiles, minWidth, minHeight);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.ui.graphics.NonAdvancedSWTGraphics

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.