de.jreality.writer.pdf
Class WriterPDF

java.lang.Object
  extended by de.jreality.writer.pdf.WriterPDF
All Implemented Interfaces:
SceneWriter

public class WriterPDF
extends Object
implements SceneWriter


Nested Class Summary
static class WriterPDF.PDF3DGridMode
           
static class WriterPDF.PDF3DLightingScene
           
static class WriterPDF.PDF3DRenderMode
           
static class WriterPDF.PDF3DTool
           
 
Field Summary
static String PDF_NAME_3D
           
static String PDF_NAME_3DD
           
static String PDF_NAME_3DV
           
static String PDF_NAME_3DVIEW
           
static String PDF_NAME_C2W
           
static String PDF_NAME_IN
           
static String PDF_NAME_MS
           
static String PDF_NAME_U3D
           
static String PDF_NAME_U3DPATH
           
static String PDF_NAME_XN
           
 
Constructor Summary
WriterPDF()
           
 
Method Summary
static void main(String[] args)
           
 void setGridMode(WriterPDF.PDF3DGridMode gridMode)
           
 void setLighting(WriterPDF.PDF3DLightingScene lighting)
           
 void setRenderMode(WriterPDF.PDF3DRenderMode renderMode)
           
 void setShowAxes(boolean showAxes)
           
 void setShowGrid(boolean showGrid)
           
 void setSize(Dimension size)
           
 void setTool(WriterPDF.PDF3DTool tool)
           
 void setUserScriptFile(File userScriptFile)
           
static void write(JrScene scene, OutputStream out)
          Exports a given JrScene into a PDF document.
 void write(SceneGraphNode c, OutputStream out)
          Exports a given SceneGraphNode into a PDF document.
 void writeScene(JrScene scene, OutputStream out)
          Exports a given JrScene into a PDF document.
 void writeScene(JrScene scene, Writer out)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF_NAME_3D

public static final String PDF_NAME_3D
See Also:
Constant Field Values

PDF_NAME_3DD

public static final String PDF_NAME_3DD
See Also:
Constant Field Values

PDF_NAME_3DV

public static final String PDF_NAME_3DV
See Also:
Constant Field Values

PDF_NAME_3DVIEW

public static final String PDF_NAME_3DVIEW
See Also:
Constant Field Values

PDF_NAME_C2W

public static final String PDF_NAME_C2W
See Also:
Constant Field Values

PDF_NAME_IN

public static final String PDF_NAME_IN
See Also:
Constant Field Values

PDF_NAME_MS

public static final String PDF_NAME_MS
See Also:
Constant Field Values

PDF_NAME_U3D

public static final String PDF_NAME_U3D
See Also:
Constant Field Values

PDF_NAME_U3DPATH

public static final String PDF_NAME_U3DPATH
See Also:
Constant Field Values

PDF_NAME_XN

public static final String PDF_NAME_XN
See Also:
Constant Field Values
Constructor Detail

WriterPDF

public WriterPDF()
Method Detail

write

public void write(SceneGraphNode c,
                  OutputStream out)
           throws IOException
Exports a given SceneGraphNode into a PDF document.

Specified by:
write in interface SceneWriter
Parameters:
c - the scene graph node to export
out - the output stream to export the data to
Throws:
IOException

writeScene

public void writeScene(JrScene scene,
                       OutputStream out)
                throws IOException
Exports a given JrScene into a PDF document.

Specified by:
writeScene in interface SceneWriter
Parameters:
scene - the scene to export
out - the output stream to export the data to
Throws:
IOException

writeScene

@Deprecated
public void writeScene(JrScene scene,
                                  Writer out)
                throws IOException,
                       UnsupportedOperationException
Deprecated. 

This method cannot be used for PDF exporting. It always throws an UnsupportedOperationException.

Specified by:
writeScene in interface SceneWriter
Parameters:
scene - unused
out - unused
Throws:
IOException
UnsupportedOperationException

write

public static void write(JrScene scene,
                         OutputStream out)
                  throws IOException
Exports a given JrScene into a PDF document.

Parameters:
scene - the scene to export
out - the output stream to export the data to
Throws:
IOException

setTool

public void setTool(WriterPDF.PDF3DTool tool)

setSize

public void setSize(Dimension size)

setLighting

public void setLighting(WriterPDF.PDF3DLightingScene lighting)

setRenderMode

public void setRenderMode(WriterPDF.PDF3DRenderMode renderMode)

setGridMode

public void setGridMode(WriterPDF.PDF3DGridMode gridMode)

setShowAxes

public void setShowAxes(boolean showAxes)

setShowGrid

public void setShowGrid(boolean showGrid)

setUserScriptFile

public void setUserScriptFile(File userScriptFile)

main

public static void main(String[] args)