FreeHEP API
Version current

org.freehep.graphicsio.exportchooser
Class AbstractExportFileType

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

public abstract class AbstractExportFileType
extends ExportFileType

Version:
$Id: AbstractExportFileType.java,v 1.9 2005/01/06 00:51:41 duns Exp $
Author:
Charles Loomis, Mark Donszelmann
Source Code:
AbstractExportFileType.java

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, adjustExtension, adjustFilename, adjustFilename, checkExtension, compareTo, createOptionPanel, fileHasValidExtension, getDescription, getExportFileTypes, getExportFileTypes, getExtension, getExtensions, getFileExtension, 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);

Throws:
IOException

getGraphics

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

Throws:
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.

Overrides:
exportToFile in class ExportFileType
Throws:
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.

Overrides:
exportToFile in class ExportFileType
Throws:
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
Throws:
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
Throws:
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 current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.