Examples of FilterAlphaRable


Examples of org.apache.batik.refimpl.gvt.filter.FilterAlphaRable

        case SVGUtilities.SOURCE_GRAPHIC:
            return (Filter)filterMap.get(VALUE_SOURCE_GRAPHIC);

        case SVGUtilities.SOURCE_ALPHA:
            in = (Filter)filterMap.get(VALUE_SOURCE_GRAPHIC);
            in =  new FilterAlphaRable(in);
            return in;

        case SVGUtilities.FILL_PAINT: {
            CSSStyleDeclaration cssDecl;
            cssDecl = ctx.getViewCSS().getComputedStyle(filteredElement, null);
            UnitProcessor.Context uctx
                = new DefaultUnitProcessorContext(ctx, cssDecl);
            Paint paint = convertFillToPaint((SVGElement)filteredElement,
                                             node, ctx, cssDecl, uctx);
            if (paint == null) {
                // create a transparent flood
                paint = new Color(0, 0, 0, 0);
            }
            return new ConcreteFloodRable(infiniteFilterRegion, paint);
        }

        case SVGUtilities.STROKE_PAINT: {
            CSSStyleDeclaration cssDecl;
            cssDecl = ctx.getViewCSS().getComputedStyle(filteredElement, null);
            UnitProcessor.Context uctx
                = new DefaultUnitProcessorContext(ctx, cssDecl);
            Paint paint = convertStrokeToPaint((SVGElement)filteredElement,
                                               node, ctx, cssDecl, uctx);
            return new ConcreteFloodRable(infiniteFilterRegion, paint);
        }

        case SVGUtilities.BACKGROUND_IMAGE:
            return new ConcreteBackgroundRable(node);

        case SVGUtilities.BACKGROUND_ALPHA:
            in = new ConcreteBackgroundRable(node);
            in = new FilterAlphaRable(in);
            return in;

        default:
            throw new Error(); // can't be reached
        }
View Full Code Here

Examples of org.apache.flex.forks.batik.ext.awt.image.renderable.FilterAlphaRable

        case 11:
            if (s.charAt(1) == SVG_SOURCE_ALPHA_VALUE.charAt(1)) {
                if (SVG_SOURCE_ALPHA_VALUE.equals(s)) {
                    // SourceAlpha
                    source = srcG;
                    source = new FilterAlphaRable(source);
                }
            } else if (SVG_STROKE_PAINT_VALUE.equals(s)) {
                    // StrokePaint
                    Paint paint = PaintServer.convertStrokePaint
                        (filteredElement,filteredNode, ctx);
                    // <!> FIXME: Should we create a transparent flood ???
                    source = new FloodRable8Bit(filterRegion, paint);
            }
            break;
        case 15:
            if (s.charAt(10) == SVG_BACKGROUND_IMAGE_VALUE.charAt(10)) {
                if (SVG_BACKGROUND_IMAGE_VALUE.equals(s)) {
                    // BackgroundImage
                    source = new BackgroundRable8Bit(filteredNode);
                    source = new PadRable8Bit(source, filterRegion,
                                              PadMode.ZERO_PAD);
                }
            } else if (SVG_BACKGROUND_ALPHA_VALUE.equals(s)) {
                // BackgroundAlpha
                source = new BackgroundRable8Bit(filteredNode);
                source = new FilterAlphaRable(source);
                source = new PadRable8Bit(source, filterRegion,
                                          PadMode.ZERO_PAD);
            }
            break;
        case 9:
View Full Code Here

Examples of org.apache.flex.forks.batik.ext.awt.image.renderable.FilterAlphaRable

        case 11:
            if (s.charAt(1) == SVG_SOURCE_ALPHA_VALUE.charAt(1)) {
                if (SVG_SOURCE_ALPHA_VALUE.equals(s)) {
                    // SourceAlpha
                    source = srcG;
                    source = new FilterAlphaRable(source);
                }
            } else if (SVG_STROKE_PAINT_VALUE.equals(s)) {
                    // StrokePaint
                    Paint paint = PaintServer.convertStrokePaint
                        (filteredElement,filteredNode, ctx);
                    // <!> FIXME: Should we create a transparent flood ???
                    source = new FloodRable8Bit(filterRegion, paint);
            }
            break;
        case 15:
            if (s.charAt(10) == SVG_BACKGROUND_IMAGE_VALUE.charAt(10)) {
                if (SVG_BACKGROUND_IMAGE_VALUE.equals(s)) {
                    // BackgroundImage
                    source = new BackgroundRable8Bit(filteredNode);
                    source = new PadRable8Bit(source, filterRegion,
                                              PadMode.ZERO_PAD);
                }
            } else if (SVG_BACKGROUND_ALPHA_VALUE.equals(s)) {
                // BackgroundAlpha
                source = new BackgroundRable8Bit(filteredNode);
                source = new FilterAlphaRable(source);
                source = new PadRable8Bit(source, filterRegion,
                                          PadMode.ZERO_PAD);
            }
            break;
        case 9:
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.