FreeHEP API
Version v1.1

org.freehep.graphicsio.ppm
Class PPMExportFileType

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

public class PPMExportFileType
extends ExportGraphicsFileTypeAdapter

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

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
ExportGraphicsFileTypeAdapter.CancelThread
 
Field Summary
static String[] ppmExtensions
           
static ExtensionFileFilter ppmFilter
           
 
Fields inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
creator
 
Constructor Summary
PPMExportFileType()
           
 
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

ppmExtensions

public static final String[] ppmExtensions

ppmFilter

public static final ExtensionFileFilter ppmFilter
Constructor Detail

PPMExportFileType

public PPMExportFileType()
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.