All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.faidon.jis.ImageSerializer

java.lang.Object
   |
   +----fi.faidon.jis.ImageSaverInterface
           |
           +----fi.faidon.jis.ImageSerializer

public class ImageSerializer
extends ImageSaverInterface
implements Serializable

Variable Index

 o FORMAT_CODE
 o FORMAT_COMPLETE_NAME
 o FORMAT_EXTENSION
 o NO_COMPRESSION

Constructor Index

 o ImageSerializer()
Default constructor.
 o ImageSerializer(Image)
Use this constructor when you want to serialize an image onto disk.

Method Index

 o checkSave()
Return ImageObserver constants for indicating the state of the image saving.
 o getColorModel()
Get the color model of the image.
 o getCompression()
Get the compression used.
 o getFormatCode()
ImageSaverInterface method implementations.
 o getFormatExtension()
 o getFormatString()
 o getImage()
Get the image.
 o getImageHeight()
Get the height of the image.
 o getImageWidth()
Get the width of the image.
 o saveIt()
 o setCompression(int)
Set the compression used.
 o setImage(Image)
Set the image to serialize.

Variables

 o NO_COMPRESSION
 public static final int NO_COMPRESSION
 o FORMAT_CODE
 public static final String FORMAT_CODE
 o FORMAT_COMPLETE_NAME
 public static final String FORMAT_COMPLETE_NAME
 o FORMAT_EXTENSION
 public static final String FORMAT_EXTENSION

Constructors

 o ImageSerializer
 public ImageSerializer()
Default constructor. Use this when you want to read the serialized image.

 o ImageSerializer
 public ImageSerializer(Image img)
Use this constructor when you want to serialize an image onto disk.

Methods

 o getFormatCode
 public String getFormatCode()
ImageSaverInterface method implementations.

Overrides:
getFormatCode in class ImageSaverInterface
 o getFormatString
 public String getFormatString()
Overrides:
getFormatString in class ImageSaverInterface
 o getFormatExtension
 public String getFormatExtension()
Overrides:
getFormatExtension in class ImageSaverInterface
 o saveIt
 public boolean saveIt()
Overrides:
saveIt in class ImageSaverInterface
 o checkSave
 public int checkSave()
Return ImageObserver constants for indicating the state of the image saving.

Overrides:
checkSave in class ImageSaverInterface
 o getImage
 public Image getImage()
Get the image.

 o setImage
 public void setImage(Image img)
Set the image to serialize.

 o getCompression
 public int getCompression()
Get the compression used.

 o setCompression
 public void setCompression(int c)
Set the compression used.

 o getColorModel
 public ColorModel getColorModel()
Get the color model of the image. This is known after serializing the image or after reading it from disk.

 o getImageWidth
 public int getImageWidth()
Get the width of the image. This is known after serializing the image or after reading it from disk.

 o getImageHeight
 public int getImageHeight()
Get the height of the image. This is known after serializing the image or after reading it from disk.


All Packages  Class Hierarchy  This Package  Previous  Next  Index