de.jreality.writer.pdf
Class WriterPDF
java.lang.Object
de.jreality.writer.pdf.WriterPDF
- All Implemented Interfaces:
- SceneWriter
public class WriterPDF
- extends Object
- implements SceneWriter
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
WriterPDF
public WriterPDF()
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 exportout
- 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 exportout
- 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
- unusedout
- 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 exportout
- 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)