org.grinvin.list.actions

Class ExportGraphImage

Implemented Interfaces:
ListSelectionListener

public class ExportGraphImage
extends FileSaveAction
implements ListSelectionListener

Exports a graph as an image

Constructor Summary

ExportGraphImage(Window parent, GraphList graphList, ListSelectionModel selectionModel)

Method Summary

protected void
saveFile(File file)
protected boolean
showFileExistsDialog(File file)
Alert the user that a file with the chosen name already exists.
void
valueChanged(ListSelectionEvent e)
@Override
void actionPerformed(ActionEvent e)

Constructor Details

ExportGraphImage

public ExportGraphImage(Window parent,
                        GraphList graphList,
                        ListSelectionModel selectionModel)

Method Details

saveFile

protected void saveFile(File file)

showFileExistsDialog

protected boolean showFileExistsDialog(File file)
Alert the user that a file with the chosen name already exists.
Returns:
true if the user allows the file to be overwritten.

valueChanged

public void valueChanged(ListSelectionEvent e)

void actionPerformed

public @Override void actionPerformed(ActionEvent e)