com.compomics.util
Class Export

java.lang.Object
  extended by com.compomics.util.Export

public class Export
extends Object

Includes export to figure formats for Components and JFreeCharts.

Author:
Harald Barsnes

Constructor Summary
Export()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Export

public Export()
Method Detail

exportChart

public static void exportChart(org.jfree.chart.JFreeChart chart,
                               Rectangle bounds,
                               File exportFile,
                               ImageType imageType)
                        throws IOException,
                               org.apache.batik.transcoder.TranscoderException
Exports the contents of a JFreeChart to an svg, png, pdf etc.

Parameters:
chart - chart to export
bounds - the dimensions of the viewport
exportFile - the output file
imageType - the image type
Throws:
IOException
org.apache.batik.transcoder.TranscoderException

exportComponent

public static void exportComponent(Component component,
                                   Rectangle bounds,
                                   File exportFile,
                                   ImageType imageType)
                            throws IOException,
                                   org.apache.batik.transcoder.TranscoderException
Exports the contents of a Component to an svg, png, pdf etc.

Parameters:
component - component to export
bounds - the dimensions of the viewport
exportFile - the output file
imageType - the image type
Throws:
IOException
org.apache.batik.transcoder.TranscoderException


Copyright © 2011. All Rights Reserved.