org.jhotdraw.app
Interface ExportableView
- All Superinterfaces:
- View
- All Known Implementing Classes:
- ODGView, SVGView
public interface ExportableView
- extends View
ExportableView is implemented by View's that support the ExportAction.
- Version:
- 1.0 January 2, 2007 Created.
- Author:
- Werner Randelshofer
Method Summary |
void |
export(java.io.File f,
javax.swing.filechooser.FileFilter filter,
java.awt.Component accessory)
Exports the view. |
javax.swing.JFileChooser |
getExportChooser()
Gets the file chooser for exporting the view. |
Methods inherited from interface org.jhotdraw.app.View |
activate, addPropertyChangeListener, canSaveTo, clear, deactivate, dispose, execute, getAction, getApplication, getComponent, getFile, getMultipleOpenId, getOpenChooser, getSaveChooser, getTitle, hasUnsavedChanges, init, isEnabled, isShowing, markChangesAsSaved, putAction, read, removePropertyChangeListener, setApplication, setEnabled, setFile, setMultipleOpenId, setShowing, setTitle, start, stop, write |
getExportChooser
javax.swing.JFileChooser getExportChooser()
- Gets the file chooser for exporting the view.
export
void export(java.io.File f,
javax.swing.filechooser.FileFilter filter,
java.awt.Component accessory)
throws java.io.IOException
- Exports the view.
By convention this method is never invoked on the AWT Event Dispatcher Thread.
- Parameters:
f
- The file to which export the view.filter
- The FileFilter that was used to choose the file. This can be null.accessory
- The Accessory used by the JFileChooser. This can be null.
- Throws:
java.io.IOException