FreeHEP API
Version v1.1

org.freehep.graphicsio.swf
Class SWFExportFileType

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

public class SWFExportFileType
extends ExportGraphicsFileTypeAdapter

// FIXME, check all options

Version:
$Id: SWFExportFileType.java,v 1.2 2002/09/04 21:59:59 duns Exp $
Author:
Mark Donszelmann

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
ExportGraphicsFileTypeAdapter.CancelThread
 
Field Summary
static String[] swfExtensions
           
static ExtensionFileFilter swfFilter
           
 
Fields inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
creator
 
Constructor Summary
SWFExportFileType()
           
 
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.
 
Methods inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
adjustExtension, checkExtension, exportToFile, exportToFile, exportToFile, exportToFile, getConfiguredGraphics, getThumbnailSize, isMultipageCapable, restoreOptions, saveOptions, setCreator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swfExtensions

public static final String[] swfExtensions

swfFilter

public static final ExtensionFileFilter swfFilter
Constructor Detail

SWFExportFileType

public SWFExportFileType()
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

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.