APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt

pack-priv final Class ImageMediaEntry

Located in compilation unit of java.awt.MediaTracker.

extends MediaEntry
implements ImageObserver, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.awt.image.ImageObserver

The entry of the list of Images that is being tracked by the MediaTracker.

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final Image
private static final long
serialVersionUID

Use serialVersionUID from JDK 1.1 for interoperability.

pack-priv final int
Inherited from java.awt.MediaEntry:
ABORTEDcancelledCOMPLETEDONEERROREDIDLOADINGLOADSTARTEDnextstatustracker

Constructor Summary

AccessConstructor and Description
pack-priv
ImageMediaEntry(MediaTracker mt, Image img, int c, int w, int h)

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
getMedia()

Implements abstract java.awt.MediaEntry.getMedia.

pack-priv synchronized int
getStatus(boolean doLoad, boolean doVerify)

Overrides java.awt.MediaEntry.getStatus.

public boolean
imageUpdate(Image img, int infoflags, int x, int y, int w, int h)

Implements java.awt.image.ImageObserver.imageUpdate.

This method is called when information about an image which was previously requested using an asynchronous interface becomes available.

pack-priv boolean
matches(Image img, int w, int h)

pack-priv int
parseflags(int infoflags)

pack-priv void
Inherited from java.awt.MediaEntry:
cancelgetIDinsertsetStatus

Field Detail

heightback to summary
pack-priv final int height
imageback to summary
pack-priv final Image image
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 1.1 for interoperability.

Annotations
@Serial
widthback to summary
pack-priv final int width

Constructor Detail

ImageMediaEntryback to summary
pack-priv ImageMediaEntry(MediaTracker mt, Image img, int c, int w, int h)

Method Detail

getMediaback to summary
pack-priv Object getMedia()

Implements abstract java.awt.MediaEntry.getMedia.

Annotations
@Override
getStatusback to summary
pack-priv synchronized int getStatus(boolean doLoad, boolean doVerify)

Overrides java.awt.MediaEntry.getStatus.

Annotations
@Override
imageUpdateback to summary
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)

Implements java.awt.image.ImageObserver.imageUpdate.

Doc from java.awt.image.ImageObserver.imageUpdate.

This method is called when information about an image which was previously requested using an asynchronous interface becomes available. Asynchronous interfaces are method calls such as getWidth(ImageObserver) and drawImage(img, x, y, ImageObserver) which take an ImageObserver object as an argument. Those methods register the caller as interested either in information about the overall image itself (in the case of getWidth(ImageObserver)) or about an output version of an image (in the case of the drawImage(img, x, y, [w, h,] ImageObserver) call).

This method should return true if further updates are needed or false if the required information has been acquired. The image which was being tracked is passed in using the img argument. Various constants are combined to form the infoflags argument which indicates what information about the image is now available. The interpretation of the x, y, width, and height arguments depends on the contents of the infoflags argument.

The infoflags argument should be the bitwise inclusive OR of the following flags: WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT.

Annotations
@Override
matchesback to summary
pack-priv boolean matches(Image img, int w, int h)
parseflagsback to summary
pack-priv int parseflags(int infoflags)
startLoadback to summary
pack-priv void startLoad()

Implements abstract java.awt.MediaEntry.startLoad.

Annotations
@Override