Package org.knowm.xchart
Class PdfboxGraphicsEncoder
java.lang.Object
org.knowm.xchart.PdfboxGraphicsEncoder
public class PdfboxGraphicsEncoder extends Object
A helper class with static methods for saving Charts as a PDF file
- Author:
- Mr14huashao
-
Method Summary
Modifier and Type Method Description static voidsavePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, File file)Write multiple charts to a filestatic voidsavePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, OutputStream os)Write multiple charts to an OutputStreamstatic voidsavePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, String fileName)Write multiple charts to a filestatic voidsavePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, File file)Write a chart to a filestatic voidsavePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, OutputStream os)Write a chart to an OutputStreamstatic voidsavePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, String fileName)Write a chart to a file
-
Method Details
-
savePdfboxGraphics
public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, String fileName) throws IOExceptionWrite a chart to a file- Parameters:
chart- ChartfileName- file name path- Throws:
IOException
-
savePdfboxGraphics
public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, File file) throws IOExceptionWrite a chart to a file- Parameters:
chart- Chartfile- File- Throws:
IOException
-
savePdfboxGraphics
public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, OutputStream os) throws IOExceptionWrite a chart to an OutputStream- Parameters:
chart- Chartos- OutputStream- Throws:
IOException
-
savePdfboxGraphics
public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, String fileName) throws IOExceptionWrite multiple charts to a file- Parameters:
charts- List extends Chart>fileName- file name path- Throws:
IOException
-
savePdfboxGraphics
public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, File file) throws IOExceptionWrite multiple charts to a file- Parameters:
charts- List extends Chart>file- File- Throws:
IOException
-
savePdfboxGraphics
public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, OutputStream os) throws IOExceptionWrite multiple charts to an OutputStream- Parameters:
charts- List extends Chart>os- OutputStream- Throws:
IOException
-