Package org.apache.batik.gvt.filter

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


    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


     * 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

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

        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

            Map props = new HashMap();
            props.put(BROKEN_LINK_PROPERTY, message);
            props.put(SVG_BROKEN_LINK_DOCUMENT_PROPERTY, doc);

            return new GraphicsNodeRable8Bit(gvtRoot, props);
        }
        return 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

        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

        // 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

     *        the circumstances of the failure.  */
    public Filter getBrokenLinkImage(String code, Object[] params) {
        if (gvtRoot != null) {
            // We should format the code and params and replace a node
            // in the gvtRoot with the result.
            return new GraphicsNodeRable8Bit(gvtRoot, rc, props);
        }
        return null;
    }
View Full Code Here

        if (graphicsNodeRable != null) {
            ret = (GraphicsNodeRable)graphicsNodeRable.get();
            if (ret != null) return ret;
        }
        if (createIfNeeded) {
        ret = new GraphicsNodeRable8Bit(this);
        graphicsNodeRable = new WeakReference(ret);
        }
        return ret;
    }
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.