Class anim.SingleImage
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class anim.SingleImage

java.lang.Object
   |
   +----anim.AnimImage
           |
           +----anim.SingleImage

public class SingleImage
extends AnimImage
implements ImageObserver
A single image used as a data source for a Sprite. Multiple SingleImages can be grouped in an ordered sequence via ImageSequence.

Copyright (c) 1996-1997 Intel Corporation

See Also:
ImageSequence, DynamicDataSprite, StaticDataSprite

CONSTRUCTOR INDEX

 O SingleImage(Image)
Creates an SingleImage with data from an Image.

METHOD INDEX

 O clearTransparency()
Clears the transparency information for a source image.
 O finalize()
Called immediately before garbage collection of this object.
 O getTransparencyColor()
Returns the color value that specifies transparency in a source image.
 O imageUpdate(Image, int, int, int, int, int)
Returns true if further calls to imageUpdate are needed by this image observer; false otherwise.
 O setTransparencyColor(Color)
Sets the color value that specifies transparency in a source image.

CONSTRUCTORS

 O SingleImage
  public SingleImage(Image i) throws InterruptedException
Creates an SingleImage with data from an Image.
Parameters:
Image - awt.Image from which to create the SingleImage
Throws: InterruptedException
The load was aborted due to timeout.
See Also:
load

METHODS

 O finalize
  protected void finalize() throws Throwable
Called immediately before garbage collection of this object.
Throws: Throwable
Never thrown. See Object.finalize for further information.
Overrides:
finalize in class Object
 O imageUpdate
  public synchronized boolean imageUpdate(Image img,
                                          int infoFlags,
                                          int x,
                                          int y,
                                          int width,
                                          int height)
Returns true if further calls to imageUpdate are needed by this image observer; false otherwise.
See Also:
imageUpdate
 O getTransparencyColor
  public Color getTransparencyColor()
Returns the color value that specifies transparency in a source image. This value must have been set by a prior call to setTransparencyColor.
Returns:
s the transparent color
See Also:
setTransparencyColor, clearTransparency
 O setTransparencyColor
  public void setTransparencyColor(Color c)
Sets the color value that specifies transparency in a source image. All pixels which match the specified color are considered transparent.
Parameters:
c - new transparent color, or null to clear the transparency information for the source image.
See Also:
getTransparencyColor, clearTransparency
 O clearTransparency
  public void clearTransparency()
Clears the transparency information for a source image.
See Also:
getTransparencyColor, setTransparencyColor

All Packages  Class Hierarchy  This Package  Previous  Next  Index
Free Web Hosting