FreeHEP API
Version v1.1

org.freehep.graphicsio.ps
Class AbstractExportFileType

java.lang.Object
  |
  +--org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
        |
        +--org.freehep.graphicsio.ps.AbstractExportFileType
All Implemented Interfaces:
ExportFileType, ExportGraphicsFileType
Direct Known Subclasses:
EPSExportFileType, PSExportFileType

public abstract class AbstractExportFileType
extends ExportGraphicsFileTypeAdapter

Version:
$Id: AbstractExportFileType.java,v 1.4 2002/08/21 16:52:05 duns Exp $
Author:
Charles Loomis, Simon Fischer

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
ExportGraphicsFileTypeAdapter.CancelThread
 
Field Summary
 
Fields inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
creator
 
Constructor Summary
AbstractExportFileType()
           
 
Method Summary
 void done()
          The default implementation does nothing.
 Graphics getConfiguredGraphics(OutputStream os, Component saveTarget)
          The method returns a graphics context which has been properly configured based on the chosen options in the options panel.
 JPanel getOptionsPanel()
          The default implementation of this method returns null.
 void restoreOptions(Properties props)
          Call this method to restore options from a Properties object.
 void saveOptions(Properties props)
          Call this method to store options in a Properties object.
 
Methods inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
adjustExtension, adjustFilename, checkExtension, exportToFile, exportToFile, exportToFile, exportToFile, fileHasValidExtension, getConfiguredGraphics, getFileFilter, getThumbnailSize, isMultipageCapable, setCreator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExportFileType

public AbstractExportFileType()
Method Detail

getOptionsPanel

public JPanel getOptionsPanel()
Description copied from class: ExportGraphicsFileTypeAdapter
The default implementation of this method returns null.

Specified by:
getOptionsPanel in interface ExportFileType
Overrides:
getOptionsPanel in class ExportGraphicsFileTypeAdapter

getConfiguredGraphics

public Graphics getConfiguredGraphics(OutputStream os,
                                      Component saveTarget)
                               throws IOException
Description copied from interface: ExportGraphicsFileType
The method returns a graphics context which has been properly configured based on the chosen options in the options panel. This method is responsible for interrogating the options panel to discover what these options are.

IOException

done

public void done()
          throws IOException
Description copied from class: ExportGraphicsFileTypeAdapter
The default implementation does nothing.

Specified by:
done in interface ExportGraphicsFileType
Overrides:
done in class ExportGraphicsFileTypeAdapter
IOException

saveOptions

public void saveOptions(Properties props)
Description copied from interface: ExportFileType
Call this method to store options in a Properties object. It is up to the particular implementation which options (if any) are stored. The intention is to provide a way to save users' preferences.

Specified by:
saveOptions in interface ExportFileType
Overrides:
saveOptions in class ExportGraphicsFileTypeAdapter

restoreOptions

public void restoreOptions(Properties props)
Description copied from interface: ExportFileType
Call this method to restore options from a Properties object. It is up to the particular implementation which options (if any) are read. The intention is to provide a way to restore users' preferences.

Specified by:
restoreOptions in interface ExportFileType
Overrides:
restoreOptions in class ExportGraphicsFileTypeAdapter

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.