|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fi.faidon.jis.ImageSaverInterface
|
+--fi.faidon.jis.ImageSerializer
| Field Summary | |
static java.lang.String |
FORMAT_CODE
|
static java.lang.String |
FORMAT_COMPLETE_NAME
|
static java.lang.String |
FORMAT_EXTENSION
|
static int |
NO_COMPRESSION
|
| Fields inherited from class fi.faidon.jis.ImageSaverInterface |
saveImage, savePath |
| Constructor Summary | |
ImageSerializer()
Default constructor. |
|
ImageSerializer(java.awt.Image img)
Use this constructor when you want to serialize an image onto disk. |
|
| Method Summary | |
int |
checkSave()
Return ImageObserver constants for indicating the state of the image saving. |
java.awt.image.ColorModel |
getColorModel()
Get the color model of the image. |
int |
getCompression()
Get the compression used. |
java.lang.String |
getFormatCode()
ImageSaverInterface method implementations. |
java.lang.String |
getFormatExtension()
|
java.lang.String |
getFormatString()
|
java.awt.Image |
getImage()
Get the image. |
int |
getImageHeight()
Get the height of the image. |
int |
getImageWidth()
Get the width of the image. |
boolean |
saveIt()
|
void |
setCompression(int c)
Set the compression used. |
void |
setImage(java.awt.Image img)
Set the image to serialize. |
| Methods inherited from class fi.faidon.jis.ImageSaverInterface |
getSaveImage, getSavePath, setSaveImage, setSavePath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_COMPRESSION
public static final java.lang.String FORMAT_CODE
public static final java.lang.String FORMAT_COMPLETE_NAME
public static final java.lang.String FORMAT_EXTENSION
| Constructor Detail |
public ImageSerializer()
public ImageSerializer(java.awt.Image img)
| Method Detail |
public java.lang.String getFormatCode()
getFormatCode in class ImageSaverInterfacepublic java.lang.String getFormatString()
getFormatString in class ImageSaverInterfacepublic java.lang.String getFormatExtension()
getFormatExtension in class ImageSaverInterfacepublic boolean saveIt()
saveIt in class ImageSaverInterfacepublic int checkSave()
checkSave in class ImageSaverInterfacepublic java.awt.Image getImage()
public void setImage(java.awt.Image img)
public int getCompression()
public void setCompression(int c)
public java.awt.image.ColorModel getColorModel()
public int getImageWidth()
public int getImageHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||