Package org.apache.batik.gvt.filter

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


     * Returns the GraphicsNodeRable for this node.  This
     * GraphicsNodeRable is the Renderable (Filter) before any of the
     * filter operations have been applied. 
     */
    public Filter getGraphicsNodeRable(boolean createIfNeeded) {
        GraphicsNodeRable ret = null;
        if (graphicsNodeRable != null) {
            ret = (GraphicsNodeRable)graphicsNodeRable.get();
            if (ret != null) return ret;
        }
        if (createIfNeeded) {
View Full Code Here


     * GraphicsNodeRable is the Renderable (Filter) after all of the
     * filter operations have been applied. 
     */
    public Filter getEnableBackgroundGraphicsNodeRable
        (boolean createIfNeeded) {
        GraphicsNodeRable ret = null;
        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

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

     * GraphicsNodeRable is the Renderable (Filter) after all of the
     * filter operations have been applied. 
     */
    public Filter getEnableBackgroundGraphicsNodeRable
        (boolean createIfNeeded) {
        GraphicsNodeRable ret = null;
        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

     * Returns the GraphicsNodeRable for this node.  This
     * GraphicsNodeRable is the Renderable (Filter) before any of the
     * filter operations have been applied. 
     */
    public Filter getGraphicsNodeRable(boolean createIfNeeded) {
        GraphicsNodeRable ret = null;
        if (graphicsNodeRable != null) {
            ret = (GraphicsNodeRable)graphicsNodeRable.get();
            if (ret != null) return ret;
        }
        if (createIfNeeded) {
View Full Code Here

        AffineTransform adjustTxf = new AffineTransform();
        adjustTxf.translate(patternBounds.getX(),
                            patternBounds.getY());
        adjustTxf.concatenate(nodeTxf);

        GraphicsNodeRable gnr
            = new ConcreteGraphicsNodeRable(node);

        AffineRable atr
            = new ConcreteAffineRable(gnr, adjustTxf);
View Full Code Here

        // Make the initial source as a RenderableImage
        GraphicsNodeRableFactory gnrFactory
            = bridgeContext.getGraphicsNodeRableFactory();

        GraphicsNodeRable sourceGraphic
            = gnrFactory.createGraphicsNodeRable(filteredNode);

        // Get the filter region and resolution
        CSSStyleDeclaration cssDecl
            = bridgeContext.getViewCSS().getComputedStyle(filterElement, null);
View Full Code Here

            Iterator i = children.iterator();
            while (i.hasNext()) {
                GraphicsNode childGN = (GraphicsNode)i.next();
                if (childGN == child)
                    break;
                GraphicsNodeRable gnr;
                GraphicsNodeRableFactory gnrf;
                gnrf = rc.getGraphicsNodeRableFactory();
                gnr  = gnrf.createGraphicsNodeRable(childGN);
                gnr.setUsePrimitivePaint(false);
                srcs.add(gnr);
            }
        }
        if (srcs.size() == 0)
            return null;
View Full Code Here

                    }
                    return;
                }
            }
            else if (filter instanceof GraphicsNodeRable) {
                GraphicsNodeRable gnr = (GraphicsNodeRable)filter;
                if (gnr.getUsePrimitivePaint()) {
                    gnr.getGraphicsNode().primitivePaint
                        (g2d, GraphicsNodeRenderContext.
                         getGraphicsNodeRenderContext(g2d));
                } else {
                    try {
                        gnr.getGraphicsNode().paint
                            (g2d, GraphicsNodeRenderContext.
                             getGraphicsNodeRenderContext(g2d));
                    } catch (InterruptedException ie) {
                        // Don't do anything we just return...
                    }
View Full Code Here

TOP

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

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.