org.freehep.graphicsio.exportchooser
Class AbstractExportFileType

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

public abstract class AbstractExportFileType
extends org.freehep.util.export.ExportFileType

Version:
$Id: AbstractExportFileType.java 12753 2007-06-12 22:32:31Z duns $
Author:
Charles Loomis, Mark Donszelmann

Nested Class Summary
 class AbstractExportFileType.CancelThread
           
 
Constructor Summary
AbstractExportFileType()
           
 
Method Summary
 boolean applyChangedOptions(javax.swing.JPanel panel, java.util.Properties options)
           
 void exportToFile(java.io.File file, java.awt.Component[] targets, java.awt.Component parent, java.util.Properties properties, java.lang.String creator)
          Save all components as the given file type.
 void exportToFile(java.io.File file, java.awt.Component target, java.awt.Component parent, java.util.Properties properties, java.lang.String creator)
          Show this dialog and save component as the given file type.
 void exportToFile(java.io.OutputStream os, java.awt.Component[] targets, java.awt.Component parent, java.util.Properties properties, java.lang.String creator)
          Save all components as the given file type.
 void exportToFile(java.io.OutputStream os, java.awt.Component target, java.awt.Component parent, java.util.Properties properties, java.lang.String creator)
          Show this dialog and save component as the given file type.
 VectorGraphics getGraphics(java.io.File file, java.awt.Component target)
          Delegates to getGraphics(OutputStream, Component);
 VectorGraphics getGraphics(java.io.File file, java.awt.Dimension dimension)
          Delegates to getGraphics(OutputStream, Dimension);
abstract  VectorGraphics getGraphics(java.io.OutputStream os, java.awt.Component printTarget)
          The method returns a graphics context specific for this ExportFileType.
abstract  VectorGraphics getGraphics(java.io.OutputStream os, java.awt.Dimension dimension)
          Returns a graphics context 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(java.io.File file,
                                  java.awt.Component target)
                           throws java.io.IOException
Delegates to getGraphics(OutputStream, Component);

Throws:
java.io.IOException

getGraphics

public VectorGraphics getGraphics(java.io.File file,
                                  java.awt.Dimension dimension)
                           throws java.io.IOException
Delegates to getGraphics(OutputStream, Dimension);

Throws:
java.io.IOException

getGraphics

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

Throws:
java.io.IOException

getGraphics

public abstract VectorGraphics getGraphics(java.io.OutputStream os,
                                           java.awt.Dimension dimension)
                                    throws java.io.IOException
Returns a graphics context for this ExportFileType.

Throws:
java.io.IOException

exportToFile

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

Overrides:
exportToFile in class org.freehep.util.export.ExportFileType
Throws:
java.io.IOException

exportToFile

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

Overrides:
exportToFile in class org.freehep.util.export.ExportFileType
Throws:
java.io.IOException

exportToFile

public void exportToFile(java.io.OutputStream os,
                         java.awt.Component[] targets,
                         java.awt.Component parent,
                         java.util.Properties properties,
                         java.lang.String creator)
                  throws java.io.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 org.freehep.util.export.ExportFileType
Throws:
java.io.IOException

exportToFile

public void exportToFile(java.io.File file,
                         java.awt.Component[] targets,
                         java.awt.Component parent,
                         java.util.Properties properties,
                         java.lang.String creator)
                  throws java.io.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 org.freehep.util.export.ExportFileType
Throws:
java.io.IOException

applyChangedOptions

public boolean applyChangedOptions(javax.swing.JPanel panel,
                                   java.util.Properties options)
Overrides:
applyChangedOptions in class org.freehep.util.export.ExportFileType


Copyright © 2000-2007 FreeHEP. All Rights Reserved.