com.compomics.util
Class Export
java.lang.Object
com.compomics.util.Export
public class Export
- extends java.lang.Object
Includes export to figure formats for Components and JFreeCharts.
- Author:
- Harald Barsnes
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Export
public Export()
exportChart
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
- Exports 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:
java.io.IOException
org.apache.batik.transcoder.TranscoderException
exportComponent
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
- Exports 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:
java.io.IOException
org.apache.batik.transcoder.TranscoderException
Copyright © 2011. All Rights Reserved.