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
-
FORMAT_CODE
-
-
FORMAT_COMPLETE_NAME
-
-
FORMAT_EXTENSION
-
-
NO_COMPRESSION
-
-
ImageSerializer()
- Default constructor.
-
ImageSerializer(Image)
- Use this constructor when you want to serialize an image
onto disk.
-
checkSave()
- Return ImageObserver constants for indicating the state of the image saving.
-
getColorModel()
- Get the color model of the image.
-
getCompression()
- Get the compression used.
-
getFormatCode()
- ImageSaverInterface method implementations.
-
getFormatExtension()
-
-
getFormatString()
-
-
getImage()
- Get the image.
-
getImageHeight()
- Get the height of the image.
-
getImageWidth()
- Get the width of the image.
-
saveIt()
-
-
setCompression(int)
- Set the compression used.
-
setImage(Image)
- Set the image to serialize.
NO_COMPRESSION
public static final int NO_COMPRESSION
FORMAT_CODE
public static final String FORMAT_CODE
FORMAT_COMPLETE_NAME
public static final String FORMAT_COMPLETE_NAME
FORMAT_EXTENSION
public static final String FORMAT_EXTENSION
ImageSerializer
public ImageSerializer()
- Default constructor. Use this when you want to read the
serialized image.
ImageSerializer
public ImageSerializer(Image img)
- Use this constructor when you want to serialize an image
onto disk.
getFormatCode
public String getFormatCode()
- ImageSaverInterface method implementations.
- Overrides:
- getFormatCode in class ImageSaverInterface
getFormatString
public String getFormatString()
- Overrides:
- getFormatString in class ImageSaverInterface
getFormatExtension
public String getFormatExtension()
- Overrides:
- getFormatExtension in class ImageSaverInterface
saveIt
public boolean saveIt()
- Overrides:
- saveIt in class ImageSaverInterface
checkSave
public int checkSave()
- Return ImageObserver constants for indicating the state of the image saving.
- Overrides:
- checkSave in class ImageSaverInterface
getImage
public Image getImage()
- Get the image.
setImage
public void setImage(Image img)
- Set the image to serialize.
getCompression
public int getCompression()
- Get the compression used.
setCompression
public void setCompression(int c)
- Set the compression used.
getColorModel
public ColorModel getColorModel()
- Get the color model of the image. This is known after serializing
the image or after reading it from disk.
getImageWidth
public int getImageWidth()
- Get the width of the image. This is known after serializing
the image or after reading it from disk.
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