public class BasicGraphFrame.ExportImageAction
extends javax.swing.AbstractAction
Constructor and Description |
---|
ExportImageAction(java.lang.String formatName)
Create a new action to export an image.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Export an image.
|
public ExportImageAction(java.lang.String formatName)
formatName
- The image format to be exported,
currently, "GIF" and "PNG" are supported.public void actionPerformed(java.awt.event.ActionEvent e)
Under Mac OS X, use java.awt.FileDialog.
Under other OS's, use javax.swing.JFileChooser. Under Mac OS
X, see PtGUIUtilities.useFileDialog()
for
how to select between the two.
e
- The event that triggered this action.