Package org.knowm.xchart
Class PdfboxGraphicsEncoder
java.lang.Object
org.knowm.xchart.PdfboxGraphicsEncoder
A helper class with static methods for saving Charts as a PDF file
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
savePdfboxGraphics
(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, File file) Write multiple charts to a filestatic void
savePdfboxGraphics
(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, OutputStream os) Write multiple charts to an OutputStreamstatic void
savePdfboxGraphics
(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, String fileName) Write multiple charts to a filestatic void
savePdfboxGraphics
(org.knowm.xchart.internal.chartpart.Chart chart, File file) Write a chart to a filestatic void
savePdfboxGraphics
(org.knowm.xchart.internal.chartpart.Chart chart, OutputStream os) Write a chart to an OutputStreamstatic void
savePdfboxGraphics
(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 IOException Write 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 IOException Write 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 IOException Write 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 IOException Write 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 IOException Write 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 IOException Write multiple charts to an OutputStream- Parameters:
charts
- List<? extends Chart>os
- OutputStream- Throws:
IOException
-