jhplot.io.images
Class Export
- java.lang.Object
-
- jhplot.io.images.Export
-
public class Export extends java.lang.Object
Includes export to figure formats for Components and JFreeCharts.
-
-
Constructor Summary
Constructors Constructor and Description Export()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
exportChart(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.
-
-
-
Method Detail
-
exportChart
public static void exportChart(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
-
-
DMelt 3.0 © DataMelt by jWork.ORG