public class PlotExporter
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
PlotExporter.IconFactory |
Defines an object that can supply an icon for exporting.
|
Constructor | Description |
---|---|
PlotExporter() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
attemptSave(javax.swing.Icon icon,
java.io.File file,
uk.ac.starlink.ttools.plot.GraphicExporter exporter) |
Attempts to write a given icon to a file in a particular
graphics format.
|
void |
exportPlot(java.awt.Component parent,
PlotExporter.IconFactory ifact) |
Offers the user a GUI to export a supplied plot icon
in a user-chosen format.
|
static PlotExporter |
getInstance() |
Returns a single instance of this class.
|
public void exportPlot(java.awt.Component parent, PlotExporter.IconFactory ifact)
parent
- parent component for dialogue windowifact
- supplies the icon to exportpublic void attemptSave(javax.swing.Icon icon, java.io.File file, uk.ac.starlink.ttools.plot.GraphicExporter exporter) throws java.io.IOException
icon
- image to paintfile
- destination fileexporter
- output graphics format handlerjava.io.IOException
- in case of write errorpublic static PlotExporter getInstance()
Copyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.