src/solaris/classes/sun/java2d/x11/X11SurfaceData.java

Print this page




 359             }
 360 
 361             if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
 362                 sg2d.drawpipe = x11txpipe;
 363                 sg2d.fillpipe = x11txpipe;
 364             } else if (sg2d.strokeState != sg2d.STROKE_THIN){
 365                 sg2d.drawpipe = x11txpipe;
 366                 sg2d.fillpipe = x11pipe;
 367             } else {
 368                 sg2d.drawpipe = x11pipe;
 369                 sg2d.fillpipe = x11pipe;
 370             }
 371             sg2d.shapepipe = x11pipe;
 372             sg2d.imagepipe = imagepipe;
 373 
 374             // This is needed for AA text.
 375             // Note that even an X11TextRenderer can dispatch AA text
 376             // if a GlyphVector overrides the AA setting.
 377             // We use getRenderLoops() rather than setting solidloops
 378             // directly so that we get the appropriate loops in XOR mode.
 379             sg2d.loops = getRenderLoops(sg2d);
 380         } else {
 381             super.validatePipe(sg2d);
 382         }
 383     }
 384 
 385     public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
 386         if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR &&
 387             sg2d.compositeState <= sg2d.COMP_ISCOPY)
 388         {
 389             return solidloops;
 390         }
 391         return super.getRenderLoops(sg2d);
 392     }
 393 
 394     public GraphicsConfiguration getDeviceConfiguration() {
 395         return graphicsConfig;
 396     }
 397 
 398     /**
 399      * Method for instantiating a Window SurfaceData




 359             }
 360 
 361             if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
 362                 sg2d.drawpipe = x11txpipe;
 363                 sg2d.fillpipe = x11txpipe;
 364             } else if (sg2d.strokeState != sg2d.STROKE_THIN){
 365                 sg2d.drawpipe = x11txpipe;
 366                 sg2d.fillpipe = x11pipe;
 367             } else {
 368                 sg2d.drawpipe = x11pipe;
 369                 sg2d.fillpipe = x11pipe;
 370             }
 371             sg2d.shapepipe = x11pipe;
 372             sg2d.imagepipe = imagepipe;
 373 
 374             // This is needed for AA text.
 375             // Note that even an X11TextRenderer can dispatch AA text
 376             // if a GlyphVector overrides the AA setting.
 377             // We use getRenderLoops() rather than setting solidloops
 378             // directly so that we get the appropriate loops in XOR mode.
 379             sg2d.setLoops(getRenderLoops(sg2d));
 380         } else {
 381             super.validatePipe(sg2d);
 382         }
 383     }
 384 
 385     public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
 386         if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR &&
 387             sg2d.compositeState <= sg2d.COMP_ISCOPY)
 388         {
 389             return solidloops;
 390         }
 391         return super.getRenderLoops(sg2d);
 392     }
 393 
 394     public GraphicsConfiguration getDeviceConfiguration() {
 395         return graphicsConfig;
 396     }
 397 
 398     /**
 399      * Method for instantiating a Window SurfaceData