Package org.apache.batik.swing.svg

Examples of org.apache.batik.swing.svg.SVGDocumentLoader


   * @param documentURL the URL of the document to rasterize

   */
  public SVGRasterizer(String documentURL) {
    UserAgent userAgent = new UserAgentAdapter();
    SVGDocumentLoader loader = new SVGDocumentLoader(documentURL,
        new DocumentLoader(userAgent));   
    loader.addSVGDocumentLoaderListener(new SVGRasterizerListener());
    /* Note that Batik uses the context class loader for loading SAX Parser, etc.
     * Context class loader is inappropriate under the Felix implementation of OSGi,
     * so replace it with the regular class loader. */
    loader.setContextClassLoader(loader.getClass().getClassLoader());
    loader.start();
  }
 
View Full Code Here

TOP

Related Classes of org.apache.batik.swing.svg.SVGDocumentLoader

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.