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.PDF3DPreferences
           
 
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 setPreferences(WriterPDF.PDF3DPreferences prefs)
          Sets the viewer preferences
 void setSize(Dimension size)
          The Dimension of the 3D Annotaion.
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

setPreferences

public void setPreferences(WriterPDF.PDF3DPreferences prefs)
Sets the viewer preferences

Parameters:
prefs -

setSize

public void setSize(Dimension size)
The Dimension of the 3D Annotaion. Only the ratio is used

Parameters:
size -

main

public static void main(String[] args)