Package org.apache.batik.gvt.renderer

Examples of org.apache.batik.gvt.renderer.StaticRenderer.updateOffScreen()


    // paint the SVG document using the bridge package
    // create the appropriate renderer

    // TODO : optimization could reuse renderers
    ImageRenderer renderer = new StaticRenderer();
    renderer.updateOffScreen(w, h);
    // curTxf.translate(0.5, 0.5);
    renderer.setTransform(curTxf);
    renderer.setTree(this.root);
    this.root = null; // We're done with it...
View Full Code Here


      final Rectangle2D bounds = node.getBounds();

      final StaticRenderer staticRenderer = new StaticRenderer();
      staticRenderer.setDoubleBuffered(true);
      staticRenderer.setTree(node);
      staticRenderer.updateOffScreen((int) bounds.getWidth(), (int) bounds.getHeight());
      return new SimpleResource(data.getKey(), staticRenderer.getOffScreen(), version);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to process SVG file", e);
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.