public class ExportUtils extends java.lang.Object
| Constructor and Description |
|---|
ExportUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RenderingInfo |
writeAsJPEG(Drawable3D drawable,
int w,
int h,
java.io.File file)
Writes the current content to the specified file in JPEG format.
|
static RenderingInfo |
writeAsPDF(Drawable3D drawable,
int w,
int h,
java.io.File file)
Writes a
Drawable3D to the specified file in PDF format. |
static RenderingInfo |
writeAsPNG(Drawable3D drawable,
int w,
int h,
java.io.File file)
Writes the current content to the specified file in PNG format.
|
static RenderingInfo |
writeAsSVG(Drawable3D drawable,
int w,
int h,
java.io.File file)
Writes the current content to the specified file in SVG format.
|
public ExportUtils()
public static RenderingInfo writeAsSVG(Drawable3D drawable, int w, int h, java.io.File file)
RuntimeException that is then thrown.drawable - the drawable (null not permitted).w - the chart width.h - the chart height.file - the output file (null not permitted).public static final RenderingInfo writeAsPDF(Drawable3D drawable, int w, int h, java.io.File file)
Drawable3D to the specified file in PDF format. This
will only work when the OrsonPDF library is found on the classpath.
Reflection is used to ensure there is no compile-time dependency on
OrsonPDF. Any exceptions that occur while writing the file are
caught and wrapped in a RuntimeException that is then thrown.drawable - the drawable ({code null} not permitted).w - the chart width.h - the chart height.file - the output file ({code null} not permitted).public static RenderingInfo writeAsPNG(Drawable3D drawable, int w, int h, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
drawable - the drawable (null not permitted).w - the chart width.h - the chart height.file - the output file (null not permitted).java.io.FileNotFoundException - if the file is not found.java.io.IOException - if there is an I/O problem.public static RenderingInfo writeAsJPEG(Drawable3D drawable, int w, int h, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
drawable - the drawable (null not permitted).w - the chart width.h - the chart height.file - the output file (null not permitted).java.io.FileNotFoundException - if the file is not found.java.io.IOException - if there is an I/O problem.