Examples of GraphicsNodeRenderContext


Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

                (paintElement, SVG_GRADIENT_UNITS_ATTRIBUTE, s);
        }

        // additional transform to move to objectBoundingBox coordinate system
        if (coordSystemType == SVGUtilities.OBJECT_BOUNDING_BOX) {
            GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext();
            transform = SVGUtilities.toObjectBBox(transform,
                                                  paintedNode,
                                                  rc);
        }
        UnitProcessor.Context uctx
View Full Code Here

Examples of org.apache.batik.gvt.GraphicsNodeRenderContext

                (paintElement, SVG_GRADIENT_UNITS_ATTRIBUTE, s);
        }

        // additional transform to move to objectBoundingBox coordinate system
        if (coordSystemType == SVGUtilities.OBJECT_BOUNDING_BOX) {
            GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext();
            transform = SVGUtilities.toObjectBBox(transform,
                                                  paintedNode,
                                                  rc);
        }
        UnitProcessor.Context uctx
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

        //     patternContentUnits attribute.
        //
        // Note that there is an additional transform from the tiling space to the
        // user space (patternTransform) that is passed separately to the PatternPaintContext.
        //
        GraphicsNodeRenderContext rc = ctx.getGraphicsNodeRenderContext();
        AffineTransform patternContentTransform
            = new AffineTransform();

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

        } else {
            coordSystemType = SVGUtilities.parseCoordinateSystem
                (clipElement, SVG_CLIP_PATH_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, clipedNode, rc);
        }

        // Build the GVT tree that represents the clip path
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

        ((SVGOMDocument)document).setSVGContext(svgCtx);

        // build the GVT tree
        GVTBuilder builder = new GVTBuilder();
        ImageRendererFactory rendFactory = new StaticRendererFactory();
        GraphicsNodeRenderContext rc = rendFactory.getRenderContext();
        BridgeContext ctx = new BridgeContext(userAgent, rc);
        GraphicsNode gvtRoot;
        try {
            gvtRoot = builder.build(ctx, svgDoc);
        } catch (BridgeException ex) {
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.