FreeHEP API
Version v1.1

org.freehep.graphicsio.pdf
Class PDFExportFileType

java.lang.Object
  |
  +--org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
        |
        +--org.freehep.graphicsio.pdf.PDFExportFileType
All Implemented Interfaces:
ExportFileType, ExportGraphicsFileType

public class PDFExportFileType
extends ExportGraphicsFileTypeAdapter

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

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
ExportGraphicsFileTypeAdapter.CancelThread
 
Field Summary
static String[] pdfExtensions
           
static ExtensionFileFilter pdfFilter
           
 
Fields inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
creator
 
Constructor Summary
PDFExportFileType()
           
 
Method Summary
 File adjustFilename(File file)
          The default implementation of this method does nothing to change the file name.
 void done()
          The default implementation does nothing.
 boolean fileHasValidExtension(File file)
          The default implementation of this method just returns false.
 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.
 FileFilter getFileFilter()
          The default implementation of this method does nothing.
 JPanel getOptionsPanel()
          The default implementation of this method returns null.
 int getThumbnailSize()
          Default = -1.
 boolean isMultipageCapable()
          Default = false.
 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, checkExtension, exportToFile, exportToFile, exportToFile, exportToFile, getConfiguredGraphics, setCreator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pdfExtensions

public static final String[] pdfExtensions

pdfFilter

public static final ExtensionFileFilter pdfFilter
Constructor Detail

PDFExportFileType

public PDFExportFileType()
Method Detail

getFileFilter

public FileFilter getFileFilter()
Description copied from class: ExportGraphicsFileTypeAdapter
The default implementation of this method does nothing.

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

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

adjustFilename

public File adjustFilename(File file)
Description copied from class: ExportGraphicsFileTypeAdapter
The default implementation of this method does nothing to change the file name.

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

fileHasValidExtension

public boolean fileHasValidExtension(File file)
Description copied from class: ExportGraphicsFileTypeAdapter
The default implementation of this method just returns false.

Specified by:
fileHasValidExtension in interface ExportFileType
Overrides:
fileHasValidExtension 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

isMultipageCapable

public boolean isMultipageCapable()
Description copied from class: ExportGraphicsFileTypeAdapter
Default = false.

Specified by:
isMultipageCapable in interface ExportGraphicsFileType
Overrides:
isMultipageCapable in class ExportGraphicsFileTypeAdapter

getThumbnailSize

public int getThumbnailSize()
Description copied from class: ExportGraphicsFileTypeAdapter
Default = -1.

Specified by:
getThumbnailSize in interface ExportGraphicsFileType
Overrides:
getThumbnailSize in class ExportGraphicsFileTypeAdapter

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.