|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mebigfatguy.polycasso.ImageSizer
public class ImageSizer
ensures that the fetching of the width or height of an image will always return a non negative number
| Field Summary |
|---|
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImageSizer(java.awt.Image loadedImage)
constructs an image sizer for the specified image |
|
| Method Summary | |
|---|---|
int |
getHeight()
get the height of the image, waiting if necessary |
int |
getWidth()
get the width of the image, waiting if necessary |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
implements the callback to collect the width and height of the image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageSizer(java.awt.Image loadedImage)
loadedImage - the image to get the width and height of| Method Detail |
|---|
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverimg - the image that is being loadedinfoflags - flags specifying what has changedx - the horizontal positiony - the vertical positionwidth - the width of the imageheight - the height of the image
public int getWidth()
public int getHeight()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||