FreeHEP API
Version current

org.freehep.graphicsio.emf
Class EMFExportFileType

java.lang.Object
  extended byorg.freehep.util.export.ExportFileType
      extended byorg.freehep.graphicsio.exportchooser.AbstractExportFileType
          extended byorg.freehep.graphicsio.emf.EMFExportFileType
All Implemented Interfaces:
Comparable

public class EMFExportFileType
extends AbstractExportFileType

// FIXME, check all options

Version:
$Id: EMFExportFileType.java,v 1.13 2004/11/17 23:25:12 duns Exp $
Author:
Mark Donszelmann
Source Code:
EMFExportFileType.java

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.AbstractExportFileType
AbstractExportFileType.CancelThread
 
Constructor Summary
EMFExportFileType()
           
 
Method Summary
 File adjustFilename(File file, Properties user)
          Gives the accessory the chance to change the output filename.
 JPanel createOptionPanel(Properties user)
          Returns a panel which allows to user to set options associated with this particular output format.
 String getDescription()
          Returns a short description of the format
 String[] getExtensions()
          Returns an array of possible extensions for the format, the first of which is the preferred extension
 VectorGraphics getGraphics(OutputStream os, Component target)
          The method returns a graphics context specific for this ExportFileType.
 String[] getMIMETypes()
          Return the MIME-type(s) for this format, the first of which is the preferred MIME type.
 boolean hasOptionPanel()
          Returns true if this format has extra options.
 
Methods inherited from class org.freehep.graphicsio.exportchooser.AbstractExportFileType
applyChangedOptions, exportToFile, exportToFile, exportToFile, exportToFile, getGraphics
 
Methods inherited from class org.freehep.util.export.ExportFileType
adjustExtension, adjustExtension, adjustFilename, checkExtension, compareTo, fileHasValidExtension, getExportFileTypes, getExportFileTypes, getExtension, getFileExtension, getFileFilter, isMultipageCapable, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFExportFileType

public EMFExportFileType()
Method Detail

getDescription

public String getDescription()
Description copied from class: ExportFileType
Returns a short description of the format

Specified by:
getDescription in class ExportFileType

getExtensions

public String[] getExtensions()
Description copied from class: ExportFileType
Returns an array of possible extensions for the format, the first of which is the preferred extension

Specified by:
getExtensions in class ExportFileType

getMIMETypes

public String[] getMIMETypes()
Description copied from class: ExportFileType
Return the MIME-type(s) for this format, the first of which is the preferred MIME type.

Specified by:
getMIMETypes in class ExportFileType

hasOptionPanel

public boolean hasOptionPanel()
Description copied from class: ExportFileType
Returns true if this format has extra options.

Overrides:
hasOptionPanel in class ExportFileType

createOptionPanel

public JPanel createOptionPanel(Properties user)
Description copied from class: ExportFileType
Returns a panel which allows to user to set options associated with this particular output format.

Overrides:
createOptionPanel in class ExportFileType

getGraphics

public VectorGraphics getGraphics(OutputStream os,
                                  Component target)
                           throws IOException
Description copied from class: AbstractExportFileType
The method returns a graphics context specific for this ExportFileType.

Specified by:
getGraphics in class AbstractExportFileType
Throws:
IOException

adjustFilename

public File adjustFilename(File file,
                           Properties user)
Description copied from class: ExportFileType
Gives the accessory the chance to change the output filename. In particular, to change the extension to match the output file format.

Overrides:
adjustFilename in class ExportFileType

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.