Examples of GraphicsNodeRenderContext


Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

            coordSystemType = SVGUtilities.parseCoordinateSystem
                (maskElement, SVG_MASK_CONTENT_UNITS_ATTRIBUTE, s);
        }

        // additional transform to move to objectBoundingBox coordinate system
        GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext();
        if (coordSystemType == SVGUtilities.OBJECT_BOUNDING_BOX) {
            Tx = SVGUtilities.toObjectBBox(Tx, maskedNode, rc);
        }

        maskNodeContent.setTransform(Tx);
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

        UnitProcessor.Context uctx
            = UnitProcessor.createContext(ctx, filteredElement);

        switch (unitsType) {
        case OBJECT_BOUNDING_BOX:
            GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext();
            Rectangle2D bounds = filteredNode.getGeometryBounds(rc);
            if (xStr.length() != 0) {
                x = UnitProcessor.svgHorizontalCoordinateToObjectBoundingBox
                    (xStr, SVG_X_ATTRIBUTE, uctx);
                x = bounds.getX() + x*bounds.getWidth();
 
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

        svgCtx.setPixelToMM(userAgent.getPixelToMM());
        ((SVGOMDocument)document).setSVGContext(svgCtx);

        // build the GVT tree
        GVTBuilder builder = new GVTBuilder();
        GraphicsNodeRenderContext rc = getRenderContext();
        BridgeContext ctx = new BridgeContext(userAgent, rc);
        GraphicsNode gvtRoot;
        try {
            gvtRoot = builder.build(ctx, svgDoc);
        } catch (BridgeException ex) {
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

            GraphicsNodeRableFactory gnrFactory =
                new ConcreteGraphicsNodeRableFactory();

            nodeRenderContext =
                new GraphicsNodeRenderContext(new AffineTransform(),
                                          null,
                                          hints,
                                          fontRenderContext,
                                          textPainter,
                                          gnrFactory);
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

            return false;
        }

        // System.out.println("drawImage GNR: " + g2dCS);
        GraphicsNode gn = getGraphicsNode();
        GraphicsNodeRenderContext gnrc
            = GraphicsNodeRenderContext.getGraphicsNodeRenderContext(g2d);

        if (getUsePrimitivePaint()){
            gn.primitivePaint(g2d, gnrc);
        }
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

        g.transform(usr2dev);

        // Clip
        g.clip(renderContext.getAreaOfInterest());
           
        GraphicsNodeRenderContext gnrc;
        gnrc = GraphicsNodeRenderContext.
            getGraphicsNodeRenderContext(renderContext);

        try {
            // Invoke primitive paint.
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

        GraphicsNodeRableFactory gnrFactory =
            new ConcreteGraphicsNodeRableFactory();

        this.nodeRenderContext =
            new GraphicsNodeRenderContext(new AffineTransform(),
                                          null,
                                          hints,
                                          fontRenderContext,
                                          textPainter,
                                          gnrFactory);
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

            GraphicsNodeRableFactory gnrFactory =
                new ConcreteGraphicsNodeRableFactory();

            nodeRenderContext =
                new GraphicsNodeRenderContext(new AffineTransform(),
                                          null,
                                          hints,
                                          fontRenderContext,
                                          textPainter,
                                          gnrFactory);
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

     * @param renderContext the RenderContext to use to produce the rendering.
     * @return a RenderedImage containing the rendered data.
     */
    public RenderedImage createRendering(RenderContext renderContext){

        GraphicsNodeRenderContext gnrc;
        gnrc = GraphicsNodeRenderContext.
            getGraphicsNodeRenderContext(renderContext);

        Filter f = getBackground(node, null, gnrc);
        if ( f == null)
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

public class GVTDemoLauncher extends JFrame {

    public GVTDemoLauncher(String title, GVTDemoSetup setup) {
        super(title);
        // Note that the order of the two calls below matters!
        GraphicsNodeRenderContext context = setup.createGraphicsContext();
        GraphicsNode node = setup.createGraphicsNode();
        EventDispatcher dispatcher = setup.createEventDispatcher();

        JComponent comp = new JSVGCanvas(node, context);
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.