FreeHEP API
Version v1.1

org.freehep.graphicsio.exportchooser
Interface ExportGraphicsFileType

All Superinterfaces:
ExportFileType
All Known Implementing Classes:
ExportGraphicsFileTypeAdapter

public interface ExportGraphicsFileType
extends ExportFileType

Objects which implement this interface provide enough functionality to provide an output file type for the ExportDialog.

Version:
$Id: ExportGraphicsFileType.java,v 1.3 2002/08/21 16:52:05 duns Exp $
Author:
Charles Loomis

Method Summary
 void done()
          A method to indicate that the export has finished.
 Graphics getConfiguredGraphics(File file, Component printTarget)
          The method returns a graphics context which has been properly configured based on the chosen options in the options panel.
 Graphics getConfiguredGraphics(OutputStream os, Component printTarget)
          The method returns a graphics context which has been properly configured based on the chosen options in the options panel.
 int getThumbnailSize()
          Returns the value of the long side of the thumbnail is desired.
 boolean isMultipageCapable()
          Returns true if this ExportFileType can handle multipage output.
 
Methods inherited from interface org.freehep.graphicsio.exportchooser.ExportFileType
adjustFilename, exportToFile, exportToFile, exportToFile, exportToFile, fileHasValidExtension, getFileFilter, getOptionsPanel, restoreOptions, saveOptions, setCreator
 

Method Detail

getConfiguredGraphics

public Graphics getConfiguredGraphics(OutputStream os,
                                      Component printTarget)
                               throws IOException
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

getConfiguredGraphics

public Graphics getConfiguredGraphics(File file,
                                      Component printTarget)
                               throws IOException
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
A method to indicate that the export has finished. If the implementation needs information to finish the export, the implementation must save the necessary information from the getConfiguredGraphics call.

IOException

isMultipageCapable

public boolean isMultipageCapable()
Returns true if this ExportFileType can handle multipage output.


getThumbnailSize

public int getThumbnailSize()
Returns the value of the long side of the thumbnail is desired. -1 indicates that no thumbnail should be given to MultipageDocument.openPage().


FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.