|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface implemented by Applications like JPhotoBrush. Other classes can access some functionality through this interface. This interface is used by plugins to communicate with the Application
| Method Summary | |
void |
executeFilter(java.awt.image.ImageFilter imageFilter)
requests the Application to execute a filter operation on the current image or on the selected region in the current image. |
int[] |
getImagePixels()
Get the 1D int array of pixels of the current image. |
java.awt.Rectangle |
getSelectedImageBounds()
returns the bounds of the selected image region in the image |
java.awt.Image |
getSelectedImagePortion()
Get the selected image region (If no region is selected, it returns the complete current image). |
void |
imageLoaded(java.io.File imageFile,
java.awt.Image image)
Inform the image has been loaded |
void |
imageNotLoaded(java.lang.Exception e)
Inform the image that exception occured while loading image |
void |
setProgress(int progress)
informs the Application of the progress of the operation in terms of percentage. |
void |
setSelectedImagePortion(java.awt.Image image)
Sets the image portion in the selected region to this image. |
| Method Detail |
public void imageLoaded(java.io.File imageFile,
java.awt.Image image)
imageFile - java.io.File object of the image fileimage - the java.awt.Image objectpublic void imageNotLoaded(java.lang.Exception e)
public java.awt.Image getSelectedImagePortion()
public java.awt.Rectangle getSelectedImageBounds()
public void setSelectedImagePortion(java.awt.Image image)
image - the image to be set in the selected region of the current image.
If no region was selected, the whole image is replaced by the Image passed as the sole parameter.public int[] getImagePixels()
public void setProgress(int progress)
progress - int value in percentagepublic void executeFilter(java.awt.image.ImageFilter imageFilter)
imageFilter - ImageFilter implemented by you.
the Application will modify the current image or selected region in
the current image and display it.
This is the most widely used method of the Application. All you have
to do is write a ImageFilter and then invoke this method to enable
the Application to modify the image
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||