public class PlotUtils extends Object
Warning: the API remains quite immature and may change in future releases
| Constructor and Description |
|---|
PlotUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exportChartAsPDF(org.jfree.chart.JFreeChart chart,
Rectangle bounds)
Exports the specified JFreeChart to a PDF file using
iText, assumed to be
installed as third party-library in the ImageJ
jars directory
(iText is bundled with Fiji). |
static void |
exportChartAsPDF(org.jfree.chart.JFreeChart chart,
Rectangle bounds,
File f)
Exports the specified JFreeChart to a PDF file using
iText, bundled with
Fiji.
|
static void |
exportChartAsSVG(org.jfree.chart.JFreeChart chart,
Rectangle bounds)
Exports the specified JFreeChart to a SVG file using the
Batik SVG
Toolkit, , assumed to be installed as third party-library in the
ImageJ
jars directory (Batik is bundled with Fiji). |
static void |
exportChartAsSVG(org.jfree.chart.JFreeChart chart,
Rectangle bounds,
File file)
Exports a JFreeChart to a SVG file using the
Batik SVG
Toolkit, bundled with Fiji.
|
public static void exportChartAsSVG(org.jfree.chart.JFreeChart chart,
Rectangle bounds,
File file)
throws IOException
chart - the JFreeChart to export.bounds - the Rectangle delimiting the boundaries within which the chart
should be drawn.file - the output (destination) file.IOException - if writing to output file fails.exportChartAsSVG(JFreeChart, Rectangle),
exportChartAsPDF(JFreeChart, Rectangle),
exportChartAsPDF(JFreeChart, Rectangle, File)public static void exportChartAsSVG(org.jfree.chart.JFreeChart chart,
Rectangle bounds)
jars directory (Batik is bundled with Fiji). The
destination file is specified by the user in a save dialog prompt. An
error message is displayed if the file could not be saved. Does nothing
if chart is null.chart - the JFreeChart to export.bounds - the Rectangle delimiting the boundaries within which the chart
should be drawn.exportChartAsSVG(JFreeChart, Rectangle, File),
exportChartAsPDF(JFreeChart, Rectangle),
exportChartAsPDF(JFreeChart, Rectangle, File)public static void exportChartAsPDF(org.jfree.chart.JFreeChart chart,
Rectangle bounds,
File f)
throws FileNotFoundException,
com.itextpdf.text.DocumentException
chart is null.chart - the JFreeChart to export.bounds - the Rectangle delimiting the boundaries within which the chart
should be drawn.FileNotFoundExceptioncom.itextpdf.text.DocumentExceptionexportChartAsPDF(JFreeChart, Rectangle),
exportChartAsSVG(JFreeChart, Rectangle),
exportChartAsSVG(JFreeChart, Rectangle, File)public static void exportChartAsPDF(org.jfree.chart.JFreeChart chart,
Rectangle bounds)
jars directory
(iText is bundled with Fiji). The destination file is specified by the
user in a save dialog prompt. An error message is displayed if the file
could not be saved. Does nothing if chart is null.chart - the JFreeChart to export.bounds - the Rectangle delimiting the boundaries within which the chart
should be drawn.exportChartAsPDF(JFreeChart, Rectangle, File),
exportChartAsSVG(JFreeChart, Rectangle),
exportChartAsSVG(JFreeChart, Rectangle, File)Copyright © 2014–2017 Fiji. All rights reserved.