|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--picturedream.implementation.PreviewPicture
| Field Summary | |
private IPicture |
basicpicture
|
private PictureData |
currentpic
|
private PictureData |
filterfilterpic
|
private PictureData |
filterpic
|
private java.awt.Image |
ivCachedImage
|
private java.util.Vector |
ivListeners
the picture listeners |
private static int |
max_height
|
private static int |
max_width
|
private PictureData |
picturedata
|
| Constructor Summary | |
PreviewPicture()
Creates a new instance of PreviewPicture |
|
| Method Summary | |
void |
addListener(IPictureListener l)
adds the given IPictureListener |
private void |
firePictureChanged()
fires a picture changed notify |
int[] |
getData()
returns a reference to the internal 32 bit buffer |
int |
getHeight()
returns the picture height |
java.awt.Image |
getImage()
produces a image from the internal 32 bit buffer |
int |
getWidth()
returns the picture width |
boolean |
isValid()
returns the images state, false if no or a corrupted image was loaded, true if valid picture data is stored in the picture. |
void |
loadImage(java.lang.String fileName)
loads a image from file, gif or jpg, java std ;-) |
void |
process(IPictureProcessor processor)
uses the given processor to process the prewiew data. |
void |
processpreview(IPictureProcessor processor,
boolean basic)
|
void |
redoPicture()
redo the current loaded Picture |
void |
reload()
set the preview filterpic to the original prwview pic |
void |
removeListener(IPictureListener l)
removes the given IPictureListener |
void |
reset()
resets the image |
void |
saveImage(java.lang.String fileName)
save a image as Windows Bitmap |
void |
setBasicPicture(IPicture basic)
|
void |
setData(int[] data,
int width,
int height)
sets the picture data directly. the width and height must match the buffers length! |
void |
undoPicture()
undo the current loaded cPicture |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private IPicture basicpicture
private java.awt.Image ivCachedImage
private static final int max_width
private static final int max_height
private java.util.Vector ivListeners
private PictureData picturedata
private PictureData filterpic
private PictureData currentpic
private PictureData filterfilterpic
| Constructor Detail |
public PreviewPicture()
| Method Detail |
public void addListener(IPictureListener l)
addListener in interface IPicturepublic int[] getData()
getData in interface IPicturepublic int getHeight()
getHeight in interface IPicturepublic java.awt.Image getImage()
getImage in interface IPicturepublic int getWidth()
getWidth in interface IPicturepublic boolean isValid()
isValid in interface IPicture
public void loadImage(java.lang.String fileName)
throws java.lang.Exception
loadImage in interface IPicturefileName - - the filename of the picture to be loadedjava.lang.Exception - public void process(IPictureProcessor processor)
process in interface IPictureprocessor - is the processor used tio process the image data
public void processpreview(IPictureProcessor processor,
boolean basic)
public void reload()
public void redoPicture()
public void removeListener(IPictureListener l)
removeListener in interface IPictureprivate void firePictureChanged()
public void reset()
reset in interface IPicture
public void saveImage(java.lang.String fileName)
throws java.lang.Exception
saveImage in interface IPicture
public void setData(int[] data,
int width,
int height)
setData in interface IPicturedata - - a 32 bit bufferwidth - - the picture widthheight - - the picture heightpublic void undoPicture()
public void setBasicPicture(IPicture basic)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||