Package com.compomics.util
Class Export
java.lang.Object
com.compomics.util.Export
public class Export extends Object
Includes export to figure formats for Components and JFreeCharts.
- Author:
- Harald Barsnes
-
Constructor Summary
Constructors Constructor Description Export()
Empty default constructor -
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
Export
public Export()Empty default constructor
-
-
Method Details
-
exportChart
public static void exportChart(org.jfree.chart.JFreeChart chart, Rectangle bounds, File exportFile, ImageType imageType) throws IOException, org.apache.batik.transcoder.TranscoderExceptionExports the contents of a JFreeChart to an svg, png, pdf etc.- Parameters:
chart
- chart to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image type- Throws:
IOException
- if an IOException occursorg.apache.batik.transcoder.TranscoderException
- if a TranscoderException occurs
-
exportComponent
public static void exportComponent(Component component, Rectangle bounds, File exportFile, ImageType imageType) throws IOException, org.apache.batik.transcoder.TranscoderExceptionExports the contents of a Component to an svg, png, pdf etc.- Parameters:
component
- component to exportbounds
- the dimensions of the viewportexportFile
- the output fileimageType
- the image type- Throws:
IOException
- if an IOException occursorg.apache.batik.transcoder.TranscoderException
- if a TranscoderException occurs
-