Examples of SVGBridgeContext


Examples of org.apache.batik.refimpl.bridge.SVGBridgeContext

    /**
     * Creates a new bridge context.
     */
    protected BridgeContext createBridgeContext(SVGDocument doc) {
        BridgeContext result = new SVGBridgeContext();
        result.setDocumentLoader
            (new BufferedDocumentLoader
             (new SVGDocumentLoader(userAgent.getXMLParserClassName())));
        result.setGVTFactory(ConcreteGVTFactory.getGVTFactoryImplementation());
        result.setParserFactory(parserFactory);
        result.setUserAgent(userAgent);
        result.setGraphicsNodeRableFactory
            (new ConcreteGraphicsNodeRableFactory());
        ((SVGBridgeContext)result).setInterpreterPool
            (new ConcreteInterpreterPool(doc));
        result.setCurrentViewport(new UserAgentViewport(userAgent));
        return result;
    }
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.