FreeHEP API
Version current

org.freehep.graphicsio.exportchooser
Class ImageExportFileType

java.lang.Object
  extended byorg.freehep.util.export.ExportFileType
      extended byorg.freehep.graphicsio.exportchooser.AbstractExportFileType
          extended byorg.freehep.graphicsio.exportchooser.ImageExportFileType
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
GIFExportFileType, JPGExportFileType, PNGExportFileType, PPMExportFileType, RawExportFileType, ZZZImageExportFileType, ZZZZImageExportFileType

public class ImageExportFileType
extends AbstractExportFileType

// FIXME, check all options

Version:
$Id: ImageExportFileType.java,v 1.10 2003/12/09 01:15:58 duns Exp $
Author:
Mark Donszelmann
Source Code:
ImageExportFileType.java

Nested Class Summary
 
Nested classes inherited from class org.freehep.graphicsio.exportchooser.AbstractExportFileType
AbstractExportFileType.CancelThread
 
Field Summary
protected  OptionCheckBox antialias
           
protected  OptionCheckBox antialiasText
           
protected  OptionCheckBox compress
           
protected  OptionComboBox compressDescription
           
protected  OptionComboBox compressMode
           
protected  OptionTextField compressQuality
           
protected  String format
           
protected  ImageWriteParam param
           
protected  OptionCheckBox progressive
           
protected  ImageWriterSpi spi
           
 
Constructor Summary
protected ImageExportFileType(String format)
           
 
Method Summary
 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.
static ImageExportFileType getInstance(String format)
           
 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.
 String toString()
           
 
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, 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, wait, wait, wait
 

Field Detail

format

protected String format

spi

protected ImageWriterSpi spi

param

protected ImageWriteParam param

antialias

protected OptionCheckBox antialias

antialiasText

protected OptionCheckBox antialiasText

progressive

protected OptionCheckBox progressive

compress

protected OptionCheckBox compress

compressMode

protected OptionComboBox compressMode

compressDescription

protected OptionComboBox compressDescription

compressQuality

protected OptionTextField compressQuality
Constructor Detail

ImageExportFileType

protected ImageExportFileType(String format)
Method Detail

getInstance

public static ImageExportFileType getInstance(String format)

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

toString

public String toString()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.