FreeHEP API
Version v1.1

org.freehep.graphicsio.svg
Class SVGExportFileType

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

public class SVGExportFileType
extends ExportGraphicsFileTypeAdapter

Identical to SVGExportFileType except for the creation of a SVGGraphics2D

Version:
$Id: SVGExportFileType.java,v 1.5 2002/08/21 16:53:30 duns Exp $
Author:
Mark Donszelmann

Nested Class Summary
 class SVGExportFileType.CompressionListener
           
 class SVGExportFileType.PageSizeListener
           
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
ExportGraphicsFileTypeAdapter.CancelThread
 
Field Summary
static String[] svgExtensions
           
static ExtensionFileFilter svgFilter
           
 
Fields inherited from class org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
creator
 
Constructor Summary
SVGExportFileType()
           
 
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(File file, Component saveTarget)
          Returns a null Graphics object.
 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, 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

svgExtensions

public static final String[] svgExtensions

svgFilter

public static final ExtensionFileFilter svgFilter
Constructor Detail

SVGExportFileType

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

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

getConfiguredGraphics

public Graphics getConfiguredGraphics(File file,
                                      Component saveTarget)
                               throws IOException
Description copied from class: ExportGraphicsFileTypeAdapter
Returns a null Graphics object.

Specified by:
getConfiguredGraphics in interface ExportGraphicsFileType
Overrides:
getConfiguredGraphics in class ExportGraphicsFileTypeAdapter
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

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

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.