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:
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  String format
           
protected  ImageWriteParam param
           
protected  OptionCheckBox progressive
           
protected  ImageWriterSpi spi
           
 
Constructor Summary
  ImageExportFileType(ImageWriterSpi spi)
           
protected ImageExportFileType(String format)
           
 
Method Summary
 JPanel createOptionPanel(Properties user)
           
 boolean equals(Object obj)
           
 String getDescription()
           
 String[] getExtensions()
           
 VectorGraphics getGraphics(OutputStream os, Component target)
          The method returns a graphics context specific for this ExportFileType.
 VectorGraphics getGraphics(OutputStream os, Dimension dimension)
          Returns a graphics context for this ExportFileType.
static ImageExportFileType getInstance(String format)
           
 String[] getMIMETypes()
           
 int hashCode()
           
 boolean hasOptionPanel()
           
 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 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)

ImageExportFileType

public ImageExportFileType(ImageWriterSpi spi)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getInstance

public static ImageExportFileType getInstance(String format)

getDescription

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

getExtensions

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

getMIMETypes

public 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 JPanel createOptionPanel(Properties user)
Overrides:
createOptionPanel in class org.freehep.util.export.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

getGraphics

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

Specified by:
getGraphics in class AbstractExportFileType
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.