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
-
Icon()
- Constructs an Icon with no image.
-
Icon(Image)
- Constructs an Icon with an image.
-
imageUpdate(Image, int, int, int, int, int)
-
-
paint(Graphics)
-
Paints the icon.
Icon
public Icon()
- Constructs an Icon with no image.
Icon
public Icon(Image image)
- Constructs an Icon with an image.
- Parameters:
- image - the icon image
paint
public void paint(Graphics g)
- Paints the icon.
- Parameters:
- g - the specified Graphics window
- Overrides:
- paint in class Canvas
- See Also:
- update
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