nodebox.graphics
Class PDFRenderer

java.lang.Object
  extended by nodebox.graphics.PDFRenderer

public class PDFRenderer
extends Object


Constructor Summary
PDFRenderer()
           
 
Method Summary
static void initialize()
          Initialize the PDF renderer.
static void render(Drawable drawable, Rectangle2D bounds, File file)
           
static void render(Drawable drawable, Rect bounds, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFRenderer

public PDFRenderer()
Method Detail

initialize

public static void initialize()
Initialize the PDF renderer.

This method loads all system fonts, and thus can take a while.

You don't have to call this method explicitly: it is called before every render operation. However, making it available here means you can show a dialog to the user that the export will take a while.

This method can be called multiple times.


render

public static void render(Drawable drawable,
                          Rect bounds,
                          File file)

render

public static void render(Drawable drawable,
                          Rectangle2D bounds,
                          File file)


Copyright © 2013. All Rights Reserved.