public class PlotExporter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PlotExporter.IconFactory
Defines an object that can supply an icon for exporting.
|
Constructor and Description |
---|
PlotExporter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attemptSave(Icon icon,
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(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(Component parent, PlotExporter.IconFactory ifact)
parent
- parent component for dialogue windowifact
- supplies the icon to exportpublic void attemptSave(Icon icon, File file, uk.ac.starlink.ttools.plot.GraphicExporter exporter) throws IOException
icon
- image to paintfile
- destination fileexporter
- output graphics format handlerIOException
- in case of write errorpublic static PlotExporter getInstance()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.