FreeHEP API
Version v1.2.2

org.freehep.graphicsio.exportchooser
Class AbstractExportFileType

java.lang.Object
  |
  +--org.freehep.util.export.ExportFileType
        |
        +--org.freehep.graphicsio.exportchooser.AbstractExportFileType
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
AbstractPSExportFileType, CGMExportFileType, EMFExportFileType, ImageExportFileType, JAVAExportFileType, PDFExportFileType, SVGExportFileType, SWFExportFileType

public abstract class AbstractExportFileType
extends ExportFileType

Version:
$Id: AbstractExportFileType.java,v 1.7 2003/05/13 05:49:33 duns Exp $
Author:
Charles Loomis, Mark Donszelmann

Nested Class Summary
 class AbstractExportFileType.CancelThread
           
 
Constructor Summary
AbstractExportFileType()
           
 
Method Summary
 boolean applyChangedOptions(JPanel panel, Properties options)
          Sets any changed options from the optionPanel to the properties object.
 void exportToFile(File file, Component[] targets, Component parent, Properties properties, String creator)
          Save all components as the given file type.
 void exportToFile(File file, Component target, Component parent, Properties properties, String creator)
          Show this dialog and save component as the given file type.
 void exportToFile(OutputStream os, Component[] targets, Component parent, Properties properties, String creator)
          Save all components as the given file type.
 void exportToFile(OutputStream os, Component target, Component parent, Properties properties, String creator)
          Show this dialog and save component as the given file type.
 VectorGraphics getGraphics(File file, Component target)
          Delegates to getGraphics(OutputStream, Component);
abstract  VectorGraphics getGraphics(OutputStream os, Component printTarget)
          The method returns a graphics context specific for this ExportFileType.
 
Methods inherited from class org.freehep.util.export.ExportFileType
adjustExtension, adjustFilename, checkExtension, compareTo, createOptionPanel, fileHasValidExtension, getDescription, getExportFileTypes, getExportFileTypes, getExtensions, getFileFilter, getMIMETypes, hasOptionPanel, isMultipageCapable, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExportFileType

public AbstractExportFileType()
Method Detail

getGraphics

public VectorGraphics getGraphics(File file,
                                  Component target)
                           throws IOException
Delegates to getGraphics(OutputStream, Component);

IOException

getGraphics

public abstract VectorGraphics getGraphics(OutputStream os,
                                           Component printTarget)
                                    throws IOException
The method returns a graphics context specific for this ExportFileType.

IOException

exportToFile

public void exportToFile(OutputStream os,
                         Component target,
                         Component parent,
                         Properties properties,
                         String creator)
                  throws IOException
Show this dialog and save component as the given file type.

Specified by:
exportToFile in class ExportFileType
IOException

exportToFile

public void exportToFile(File file,
                         Component target,
                         Component parent,
                         Properties properties,
                         String creator)
                  throws IOException
Show this dialog and save component as the given file type.

Specified by:
exportToFile in class ExportFileType
IOException

exportToFile

public void exportToFile(OutputStream os,
                         Component[] targets,
                         Component parent,
                         Properties properties,
                         String creator)
                  throws IOException
Save all components as the given file type. If getConfiguredGraphics(OutputStream, Component[]) does not return a MultiPageDocument (or null) saveTargets.length numbered documents are created each of which contains a single page.

Specified by:
exportToFile in class ExportFileType
IOException

exportToFile

public void exportToFile(File file,
                         Component[] targets,
                         Component parent,
                         Properties properties,
                         String creator)
                  throws IOException
Save all components as the given file type. If getConfiguredGraphics(File, Component[]) does not return a MultiPageDocument (or null) saveTargets.length numbered documents are created each of which contains a single page.

Specified by:
exportToFile in class ExportFileType
IOException

applyChangedOptions

public boolean applyChangedOptions(JPanel panel,
                                   Properties options)
Description copied from class: ExportFileType
Sets any changed options from the optionPanel to the properties object.

Overrides:
applyChangedOptions in class ExportFileType
Returns:
true if any options were set.

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.