org.freehep.graphicsio.exportchooser
Class ImageExportFileType

java.lang.Object
  extended by org.freehep.util.export.ExportFileType
      extended by org.freehep.graphicsio.exportchooser.AbstractExportFileType
          extended by org.freehep.graphicsio.exportchooser.ImageExportFileType
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
GIFExportFileType, PPMExportFileType, RawExportFileType

public class ImageExportFileType
extends AbstractExportFileType

// FIXME, check all options

Version:
$Id: ImageExportFileType.java 12753 2007-06-12 22:32:31Z duns $
Author:
Mark Donszelmann

Nested Class Summary
 
Nested classes/interfaces 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  java.lang.String format
           
protected  javax.imageio.ImageWriteParam param
           
protected  OptionCheckBox progressive
           
protected  javax.imageio.spi.ImageWriterSpi spi
           
 
Constructor Summary
  ImageExportFileType(javax.imageio.spi.ImageWriterSpi spi)
           
protected ImageExportFileType(java.lang.String format)
           
 
Method Summary
 javax.swing.JPanel createOptionPanel(java.util.Properties user)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.lang.String[] getExtensions()
           
 VectorGraphics getGraphics(java.io.OutputStream os, java.awt.Component target)
          The method returns a graphics context specific for this ExportFileType.
 VectorGraphics getGraphics(java.io.OutputStream os, java.awt.Dimension dimension)
          Returns a graphics context for this ExportFileType.
static ImageExportFileType getInstance(java.lang.String format)
           
 java.lang.String[] getMIMETypes()
           
 int hashCode()
           
 boolean hasOptionPanel()
           
 java.lang.String toString()
           
 
Methods inherited from class org.freehep.graphicsio.exportchooser.AbstractExportFileType
applyChangedOptions, exportToFile, exportToFile, exportToFile, exportToFile, getGraphics, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

format

protected java.lang.String format

spi

protected javax.imageio.spi.ImageWriterSpi spi

param

protected javax.imageio.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(java.lang.String format)

ImageExportFileType

public ImageExportFileType(javax.imageio.spi.ImageWriterSpi spi)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getInstance

public static ImageExportFileType getInstance(java.lang.String format)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class org.freehep.util.export.ExportFileType

getExtensions

public java.lang.String[] getExtensions()
Specified by:
getExtensions in class org.freehep.util.export.ExportFileType

getMIMETypes

public java.lang.String[] getMIMETypes()
Specified by:
getMIMETypes in class org.freehep.util.export.ExportFileType

hasOptionPanel

public boolean hasOptionPanel()
Overrides:
hasOptionPanel in class org.freehep.util.export.ExportFileType

createOptionPanel

public javax.swing.JPanel createOptionPanel(java.util.Properties user)
Overrides:
createOptionPanel in class org.freehep.util.export.ExportFileType

getGraphics

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

Specified by:
getGraphics in class AbstractExportFileType
Throws:
java.io.IOException

getGraphics

public VectorGraphics getGraphics(java.io.OutputStream os,
                                  java.awt.Dimension dimension)
                           throws java.io.IOException
Description copied from class: AbstractExportFileType
Returns a graphics context for this ExportFileType.

Specified by:
getGraphics in class AbstractExportFileType
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2007 FreeHEP. All Rights Reserved.