public class Export
extends java.lang.Object
Constructor and Description |
---|
Export() |
Modifier and Type | Method and Description |
---|---|
static void |
exportChart(org.jfree.chart.JFreeChart chart,
java.awt.Rectangle bounds,
java.io.File exportFile,
ImageType imageType)
Exports the contents of a JFreeChart to an svg, png, pdf etc.
|
static void |
exportComponent(java.awt.Component component,
java.awt.Rectangle bounds,
java.io.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, java.awt.Rectangle bounds, java.io.File exportFile, ImageType imageType) throws java.io.IOException, org.apache.batik.transcoder.TranscoderException
chart
- chart to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image typejava.io.IOException
org.apache.batik.transcoder.TranscoderException
public static void exportComponent(java.awt.Component component, java.awt.Rectangle bounds, java.io.File exportFile, ImageType imageType) throws java.io.IOException, org.apache.batik.transcoder.TranscoderException
component
- component to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image typejava.io.IOException
org.apache.batik.transcoder.TranscoderException
Copyright © 2013. All Rights Reserved.