Package org.apache.batik.gvt.filter

Examples of org.apache.batik.gvt.filter.GraphicsNodeRable8Bit


        if (enableBackgroundGraphicsNodeRable != null) {
            ret = (GraphicsNodeRable)enableBackgroundGraphicsNodeRable.get();
            if (ret != null) return ret;
        }
        if (createIfNeeded) {
            ret = new GraphicsNodeRable8Bit(this);
            ret.setUsePrimitivePaint(false);
            enableBackgroundGraphicsNodeRable = new WeakReference(ret);
        }
        return ret;
    }
View Full Code Here


     * Internal method used to synchronize local state in response to
     * various set methods. 
     */
    protected void updateWorkingBuffers() {
        if (rootGNR == null) {
            rootGNR = new GraphicsNodeRable8Bit(rootGN,
                                                nodeRenderContext);
            rootCR = null;
        }

        if (rootCR == null) {
View Full Code Here

        // Wrap the input node so that the primitivePaint
        // in GraphicsNodeRable takes the filter, clip....
        // into account.
        CompositeGraphicsNode comp = new CompositeGraphicsNode();
        comp.getChildren().add(node);
        GraphicsNodeRable gnr = new GraphicsNodeRable8Bit(comp, gnrc);

        Rectangle2D padBounds = (Rectangle2D)patternRegion.clone();

        //
        // When there is overflow, make sure we take the
View Full Code Here

        // get filter chain region
        Rectangle2D filterRegion = SVGUtilities.convertFilterChainRegion
            (filterElement, filteredElement, filteredNode, ctx);

        // make the initial source as a RenderableImage
        GraphicsNodeRable sourceGraphic = new GraphicsNodeRable8Bit
            (filteredNode, ctx.getGraphicsNodeRenderContext());

        // build a FilterChainRable8Bit
        FilterChainRable filterChain
            = new FilterChainRable8Bit(sourceGraphic, filterRegion);
View Full Code Here

        maskNodeContent.setTransform(Tx);

        Filter filter = maskedNode.getFilter();
        if (filter == null) {
            // Make the initial source as a RenderableImage
            filter = new GraphicsNodeRable8Bit(maskedNode, rc);
        }

        return new MaskRable8Bit(filter, maskNode, maskRegion);
    }
View Full Code Here

    protected static Filter createSVGFeImage(BridgeContext ctx,
                                             Rectangle2D primitiveRegion,
                                             Element refElement) {

        GraphicsNode node = ctx.getGVTBuilder().build(ctx, refElement);
        Filter filter = new GraphicsNodeRable8Bit
            (node, ctx.getGraphicsNodeRenderContext());

        // Need to translate the image to the x, y coordinate to
        // have the same behavior as the <use> element
        // <!> FIX ME? I THINK THIS IS ONLY PARTIALLY IMPLEMENTING THE SPEC.
View Full Code Here

        }

        Filter filter = clipedNode.getFilter();
        if (filter == null) {
            // Make the initial source as a RenderableImage
            filter = new GraphicsNodeRable8Bit(clipedNode, rc);
        }
        return new ClipRable8Bit(filter, clipPath);
    }
View Full Code Here

                                 {0, 0, 1, 0, 0},
                                 {0, 0, 0, opacity, 0} };

            ColorMatrixRable filter = ColorMatrixRable8Bit.buildMatrix(matrix);
            Filter contentRable
                = new GraphicsNodeRable8Bit(patternContentNode, rc);
            filter.setSource(contentRable);
            patternContentNode.setFilter(filter);
        }

        return new PatternPaint(patternContentNode,
View Full Code Here

                     strokeWidth * markerHeight - offsets[2]);
            }

            CompositeGraphicsNode comp = new CompositeGraphicsNode();
            comp.getChildren().add(markerContentNode);
            Filter clipSrc = new GraphicsNodeRable8Bit
                (comp, ctx.getGraphicsNodeRenderContext());
            comp.setClip(new ClipRable8Bit(clipSrc, markerClip));
            markerContentNode = comp;
        }

View Full Code Here

        if (clip != null) {
            try {
                at = at.createInverse(); // clip in user space
                clip = at.createTransformedShape(clip);
                Filter filter = new GraphicsNodeRable8Bit
                    (gn, ctx.getGraphicsNodeRenderContext());
                gn.setClip(new ClipRable8Bit(filter, clip));
            } catch (NoninvertibleTransformException ex) {}
        }
View Full Code Here

TOP

Related Classes of org.apache.batik.gvt.filter.GraphicsNodeRable8Bit

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.