< prev index next >

src/java.desktop/share/classes/sun/java2d/SurfaceData.java

Print this page




 628                 }
 629             }
 630         } else if (sg2d.antialiasHint == SunHints.INTVAL_ANTIALIAS_ON) {
 631             sg2d.alphafill = getMaskFill(sg2d);
 632             // assert(sg2d.surfaceData == this);
 633             if (sg2d.alphafill != null) {
 634                 if (sg2d.clipState == SunGraphics2D.CLIP_SHAPE) {
 635                     sg2d.drawpipe = AAClipColorViaShape;
 636                     sg2d.fillpipe = AAClipColorViaShape;
 637                     sg2d.shapepipe = AAClipColorViaShape;
 638                     sg2d.textpipe = clipColorText;
 639                 } else {
 640                     PixelToParallelogramConverter converter =
 641                         (sg2d.alphafill.canDoParallelograms()
 642                          ? AAColorViaPgram
 643                          : AAColorViaShape);
 644                     sg2d.drawpipe = converter;
 645                     sg2d.fillpipe = converter;
 646                     sg2d.shapepipe = converter;
 647                     if (sg2d.paintState > SunGraphics2D.PAINT_ALPHACOLOR ||
 648                         sg2d.compositeState > SunGraphics2D.COMP_ISCOPY)
 649                     {

 650                         sg2d.textpipe = colorText;
 651                     } else {
 652                         sg2d.textpipe = getTextPipe(sg2d, true /* AA==ON */);
 653                     }
 654                 }
 655             } else {
 656                 if (sg2d.clipState == SunGraphics2D.CLIP_SHAPE) {
 657                     sg2d.drawpipe = AAClipPaintViaShape;
 658                     sg2d.fillpipe = AAClipPaintViaShape;
 659                     sg2d.shapepipe = AAClipPaintViaShape;
 660                     sg2d.textpipe = clipPaintText;
 661                 } else {
 662                     sg2d.drawpipe = AAPaintViaShape;
 663                     sg2d.fillpipe = AAPaintViaShape;
 664                     sg2d.shapepipe = AAPaintViaShape;
 665                     sg2d.textpipe = paintText;
 666                 }
 667             }
 668         } else if (sg2d.paintState > SunGraphics2D.PAINT_ALPHACOLOR ||
 669                    sg2d.compositeState > SunGraphics2D.COMP_ISCOPY ||




 628                 }
 629             }
 630         } else if (sg2d.antialiasHint == SunHints.INTVAL_ANTIALIAS_ON) {
 631             sg2d.alphafill = getMaskFill(sg2d);
 632             // assert(sg2d.surfaceData == this);
 633             if (sg2d.alphafill != null) {
 634                 if (sg2d.clipState == SunGraphics2D.CLIP_SHAPE) {
 635                     sg2d.drawpipe = AAClipColorViaShape;
 636                     sg2d.fillpipe = AAClipColorViaShape;
 637                     sg2d.shapepipe = AAClipColorViaShape;
 638                     sg2d.textpipe = clipColorText;
 639                 } else {
 640                     PixelToParallelogramConverter converter =
 641                         (sg2d.alphafill.canDoParallelograms()
 642                          ? AAColorViaPgram
 643                          : AAColorViaShape);
 644                     sg2d.drawpipe = converter;
 645                     sg2d.fillpipe = converter;
 646                     sg2d.shapepipe = converter;
 647                     if (sg2d.paintState > SunGraphics2D.PAINT_ALPHACOLOR ||
 648                         sg2d.compositeState > SunGraphics2D.COMP_ISCOPY  ||
 649                         sg2d.getSurfaceData().getTransparency() != 
 650                                                      Transparency.OPAQUE) {
 651                         sg2d.textpipe = colorText;
 652                     } else {
 653                         sg2d.textpipe = getTextPipe(sg2d, true /* AA==ON */);
 654                     }
 655                 }
 656             } else {
 657                 if (sg2d.clipState == SunGraphics2D.CLIP_SHAPE) {
 658                     sg2d.drawpipe = AAClipPaintViaShape;
 659                     sg2d.fillpipe = AAClipPaintViaShape;
 660                     sg2d.shapepipe = AAClipPaintViaShape;
 661                     sg2d.textpipe = clipPaintText;
 662                 } else {
 663                     sg2d.drawpipe = AAPaintViaShape;
 664                     sg2d.fillpipe = AAPaintViaShape;
 665                     sg2d.shapepipe = AAPaintViaShape;
 666                     sg2d.textpipe = paintText;
 667                 }
 668             }
 669         } else if (sg2d.paintState > SunGraphics2D.PAINT_ALPHACOLOR ||
 670                    sg2d.compositeState > SunGraphics2D.COMP_ISCOPY ||


< prev index next >