Repaints the component when the image has changed.
This
imageUpdate
method of an
ImageObserver
is called when more information about an
image which had been previously requested using an asynchronous
routine such as the
drawImage
method of
Graphics
becomes available.
See the definition of
imageUpdate
for
more information on this method and its arguments.
The imageUpdate
method of Component
incrementally draws an image on the component as more of the bits
of the image are available.
If the system property awt.image.incrementaldraw
is missing or has the value true
, the image is
incrementally drawn. If the system property has any other value,
then the image is not drawn until it has been completely loaded.
Also, if incremental drawing is in effect, the value of the
system property awt.image.redrawrate
is interpreted
as an integer to give the maximum redraw rate, in milliseconds. If
the system property is missing or cannot be interpreted as an
integer, the redraw rate is once every 100ms.
The interpretation of the x
, y
,
width
, and height
arguments depends on
the value of the infoflags
argument.
Returns:
false
if the infoflags indicate that the
image is completely loaded; true
otherwise.
Parameters:
- img - the image being observed
- infoflags - see imageUpdate
for more information
- x - the x coordinate
- y - the y coordinate
- w - the width
- h - the height
Since:
JDK1.0
See Also:
ImageObserver
,
Graphics.drawImage(Image, int, int, Color, java.awt.image.ImageObserver)
,
Graphics.drawImage(Image, int, int, java.awt.image.ImageObserver)
,
Graphics.drawImage(Image, int, int, int, int, Color, java.awt.image.ImageObserver)
,
Graphics.drawImage(Image, int, int, int, int, java.awt.image.ImageObserver)
,
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
,