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


        Document doc = getBrokenLinkDocument(message);
        Map props = new HashMap();
        props.put(BROKEN_LINK_PROPERTY, message);
        props.put(SVG_BROKEN_LINK_DOCUMENT_PROPERTY, doc);
       
        return new GraphicsNodeRable8Bit(gvtRoot, props);
    }
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

            props.put(BROKEN_LINK_PROPERTY, message);
            props.put(SVG_BROKEN_LINK_DOCUMENT_PROPERTY, doc);

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

                                 {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

        }

        if (clip != null) {
      try {
    at = at.createInverse(); // clip in user space
    Filter filter = new GraphicsNodeRable8Bit
        (node, ctx.getGraphicsNodeRenderContext());
    clip = at.createTransformedShape(clip);
    node.setClip(new ClipRable8Bit(filter, clip));
      } catch (java.awt.geom.NoninvertibleTransformException ex) {}
  }
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

        }

        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

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