public class Export extends Object
Constructor and Description |
---|
Export() |
Modifier and Type | Method and Description |
---|---|
static void |
exportChart(org.jfree.chart.JFreeChart chart,
Rectangle bounds,
File exportFile,
ImageType imageType)
Exports the contents of a JFreeChart to an svg, png, pdf etc.
|
static void |
exportComponent(Component component,
Rectangle bounds,
File exportFile,
ImageType imageType)
Exports the contents of a Component to an svg, png, pdf etc.
|
public static void exportChart(org.jfree.chart.JFreeChart chart, Rectangle bounds, File exportFile, ImageType imageType) throws IOException, org.apache.batik.transcoder.TranscoderException
chart
- chart to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image typeIOException
- if an IOException occursorg.apache.batik.transcoder.TranscoderException
- if a TranscoderException occurspublic static void exportComponent(Component component, Rectangle bounds, File exportFile, ImageType imageType) throws IOException, org.apache.batik.transcoder.TranscoderException
component
- component to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image typeIOException
- if an IOException occursorg.apache.batik.transcoder.TranscoderException
- if a TranscoderException occursCopyright © 2016. All rights reserved.