Class SE.liu.lysator.gfx.Icon
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SE.liu.lysator.gfx.Icon

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----SE.liu.lysator.gfx.Icon

public class Icon
extends Canvas
implements ImageObserver
A class that produces a component displaying an image

Constructor Index

 o Icon()
Constructs an Icon with no image.
 o Icon(Image)
Constructs an Icon with an image.

Method Index

 o imageUpdate(Image, int, int, int, int, int)
 o paint(Graphics)
Paints the icon.

Constructors

 o Icon
  public Icon()
Constructs an Icon with no image.
 o Icon
  public Icon(Image image)
Constructs an Icon with an image.
Parameters:
image - the icon image

Methods

 o paint
  public void paint(Graphics g)
Paints the icon.
Parameters:
g - the specified Graphics window
Overrides:
paint in class Canvas
See Also:
update
 o imageUpdate
  public boolean imageUpdate(Image img,
                             int infoflags,
                             int x,
                             int y,
                             int width,
                             int height)
Overrides:
imageUpdate in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index