fi.faidon.jis
Class ImageSaverObject

java.lang.Object
  |
  +--fi.faidon.jis.ImageSaverObject
All Implemented Interfaces:
java.io.Serializable

public class ImageSaverObject
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ImageSaverObject()
           
 
Method Summary
 int checkSave()
          Return ImageObserver constants for indicating the state of the image saving.
 void saveAsBMP()
          Show the "Save As..." dialog and then save the image in Windows BMP format.
 void saveAsPICT()
          Show the "Save As..." dialog and then save the image in PICT format.
 void saveAsPNG()
          Show the "Save As..." dialog and then save the image in PNG format.
 void saveAsTarga()
          Show the "Save As..." dialog and then save the image in Targa format.
 void saveAsTIFF()
          Show the "Save As..." dialog and then save the image in TIFF format.
 boolean saveBMP()
          Save the image in Windows BMP format.
 boolean saveIt()
          Save the image into a graphics file of the given format.
 boolean savePICT()
          Save the image in PICT format.
 boolean savePNG()
          Save the image in PNG.
 boolean saveTarga()
          Save the image in Targa format.
 boolean saveTIFF()
          Save the image in TIFF format.
 boolean saveToFile(java.awt.Image theImage, java.lang.String thePath, java.lang.String formatCode)
          Save the image into a graphics file of the given format.
 boolean saveWithImageSaver()
          Set up the current image saver object with the current parameters and save the image.
 void setSaveFormat(java.lang.String f)
          Set the save format.
 void setSaveImage(java.awt.Image img)
          Set the image to save.
 void setSavePath(java.lang.String path)
          Set the path where the file should be saved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSaverObject

public ImageSaverObject()
Method Detail

saveIt

public boolean saveIt()
Save the image into a graphics file of the given format. This static method is a convenience method which makes it possible to save an image with just one call. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


checkSave

public int checkSave()
Return ImageObserver constants for indicating the state of the image saving.


saveToFile

public boolean saveToFile(java.awt.Image theImage,
                          java.lang.String thePath,
                          java.lang.String formatCode)
Save the image into a graphics file of the given format. This method is a convenience method which makes it possible to save an image with just one call. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


setSaveImage

public void setSaveImage(java.awt.Image img)
Set the image to save.


setSavePath

public void setSavePath(java.lang.String path)
Set the path where the file should be saved.


setSaveFormat

public void setSaveFormat(java.lang.String f)
Set the save format.


saveTIFF

public boolean saveTIFF()
Save the image in TIFF format. "saveImage" and "savePath" have to be set before. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


saveTarga

public boolean saveTarga()
Save the image in Targa format. "saveImage" and "savePath" have to be set before. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


savePICT

public boolean savePICT()
Save the image in PICT format. "saveImage" and "savePath" have to be set before. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


saveBMP

public boolean saveBMP()
Save the image in Windows BMP format. "saveImage" and "savePath" have to be set before. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


savePNG

public boolean savePNG()
Save the image in PNG. "saveImage" and "savePath" have to be set before. Return true if success, false otherwise. REMARK! This is an asynchronous operation. Use checkSave() to know when the saving is finished and how.


saveAsTIFF

public void saveAsTIFF()
Show the "Save As..." dialog and then save the image in TIFF format.


saveAsTarga

public void saveAsTarga()
Show the "Save As..." dialog and then save the image in Targa format.


saveAsPICT

public void saveAsPICT()
Show the "Save As..." dialog and then save the image in PICT format.


saveAsBMP

public void saveAsBMP()
Show the "Save As..." dialog and then save the image in Windows BMP format.


saveAsPNG

public void saveAsPNG()
Show the "Save As..." dialog and then save the image in PNG format.


saveWithImageSaver

public boolean saveWithImageSaver()
Set up the current image saver object with the current parameters and save the image.