Lines Matching refs:sg2d
515 public boolean canRenderLCDText(SunGraphics2D sg2d) {
518 sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
519 sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
520 sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
538 public void validatePipe(SunGraphics2D sg2d) {
545 if (sg2d.compositeState >= sg2d.COMP_XOR) {
546 super.validatePipe(sg2d);
547 sg2d.imagepipe = d3dImagePipe;
560 (sg2d.compositeState <= sg2d.COMP_ISCOPY &&
561 sg2d.paintState <= sg2d.PAINT_ALPHACOLOR) ||
564 (sg2d.compositeState == sg2d.COMP_ALPHA &&
565 sg2d.paintState <= sg2d.PAINT_ALPHACOLOR &&
566 (((AlphaComposite)sg2d.composite).getRule() ==
570 (sg2d.compositeState == sg2d.COMP_XOR &&
571 sg2d.paintState <= sg2d.PAINT_ALPHACOLOR))
577 super.validatePipe(sg2d);
578 textpipe = sg2d.textpipe;
585 if (sg2d.antialiasHint != SunHints.INTVAL_ANTIALIAS_ON) {
586 if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR) {
587 if (sg2d.compositeState <= sg2d.COMP_XOR) {
591 } else if (sg2d.compositeState <= sg2d.COMP_ALPHA) {
592 if (D3DPaints.isValid(sg2d)) {
599 if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR) {
601 (sg2d.imageComp == CompositeType.SrcOverNoEa ||
602 sg2d.imageComp == CompositeType.SrcOver))
605 super.validatePipe(sg2d);
609 new PixelToParallelogramConverter(sg2d.shapepipe,
613 sg2d.drawpipe = aaConverter;
614 sg2d.fillpipe = aaConverter;
615 sg2d.shapepipe = aaConverter;
616 } else if (sg2d.compositeState == sg2d.COMP_XOR) {
626 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
627 sg2d.drawpipe = txPipe;
628 sg2d.fillpipe = txPipe;
629 } else if (sg2d.strokeState != sg2d.STROKE_THIN) {
630 sg2d.drawpipe = txPipe;
631 sg2d.fillpipe = nonTxPipe;
633 sg2d.drawpipe = nonTxPipe;
634 sg2d.fillpipe = nonTxPipe;
640 sg2d.shapepipe = txPipe;
643 super.validatePipe(sg2d);
648 sg2d.textpipe = textpipe;
651 sg2d.imagepipe = d3dImagePipe;
655 protected MaskFill getMaskFill(SunGraphics2D sg2d) {
656 if (sg2d.paintState > sg2d.PAINT_ALPHACOLOR) {
668 if (!D3DPaints.isValid(sg2d) ||
674 return super.getMaskFill(sg2d);
678 public boolean copyArea(SunGraphics2D sg2d,
681 if (sg2d.transformState < sg2d.TRANSFORM_TRANSLATESCALE &&
682 sg2d.compositeState < sg2d.COMP_XOR)
684 x += sg2d.transX;
685 y += sg2d.transY;
687 d3dRenderPipe.copyArea(sg2d, x, y, w, h, dx, dy);