Package org.apache.batik.bridge

Examples of org.apache.batik.bridge.Viewport


            SVGUtilities.convertAffineTransform(clipElement,
                                                ATTR_TRANSFORM,
                                                ctx.getParserFactory());

        // parse the clipPathUnits attribute
        Viewport oldViewport = ctx.getCurrentViewport();
        String units = clipElement.getAttributeNS(null, ATTR_CLIP_PATH_UNITS);
        if (units.length() == 0) {
            units = VALUE_USER_SPACE_ON_USE;
        }
        int unitsType;
View Full Code Here


                Messages.formatMessage("mask.maskContentUnits.invalid",
                                       new Object[] {maskContentUnits,
                                                     ATTR_CLIP_PATH_UNITS}));
        }

        Viewport oldViewport = bridgeContext.getCurrentViewport();
        if(maskContentUnitsType == SVGUtilities.OBJECT_BOUNDING_BOX) {
            bridgeContext.setCurrentViewport(new ObjectBoundingBoxViewport());
        }

        GVTBuilder builder = bridgeContext.getGVTBuilder();
View Full Code Here

    protected GraphicsNode createSVGImageNode(BridgeContext ctx,
                                              SVGElement element,
                                              SVGDocument imgDocument) {

        Viewport oldViewport = ctx.getCurrentViewport();
        ViewCSS oldViewCSS = ctx.getViewCSS();

        ctx.setCurrentViewport(null);
        ctx.setViewCSS((ViewCSS)((SVGOMDocument)imgDocument).getDefaultView());
        SVGSVGElement svgElement = imgDocument.getRootElement();
View Full Code Here

    protected Paint createPaint(BridgeContext ctx,
                                GraphicsNode paintedNode,
                                Element paintedElement,
                                Element paintElement) {

        Viewport oldViewport = ctx.getCurrentViewport();

        // parse the patternContentUnits attribute
        String patternContentUnits
            = paintElement.getAttributeNS(null, ATTR_PATTERN_CONTENT_UNITS);
View Full Code Here

        hints.put(TranscodingHints.KEY_XML_PARSER_CLASSNAME,
                  "org.apache.crimson.parser.XMLReaderImpl");
        hints.put(TranscodingHints.KEY_GVT_BUILDER,
                  new org.apache.batik.refimpl.bridge.ConcreteGVTBuilder());
        hints.put(TranscodingHints.KEY_DEFAULT_VIEWPORT,
                  new Viewport() {
            public float getWidth() { return 640f; }
            public float getHeight() { return 480f; }
        });
    }
View Full Code Here

TOP

Related Classes of org.apache.batik.bridge.Viewport

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.