Class ImageComponent

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ImageComponent

public class ImageComponent
extends Canvas
A component that just draws the image passed to it in the constructor.

Author:
Peter Sagerson, petersag@wpi.edu

Variable Index

 o image
The image to be drawn.

Constructor Index

 o ImageComponent(Image)

Method Index

 o paint(Graphics)
Paints the image, taking into consideration the parent's insets.

Variables

 o image
 private Image image
The image to be drawn.

Constructors

 o ImageComponent
 public ImageComponent(Image inImage)

Methods

 o paint
 public void paint(Graphics g)
Paints the image, taking into consideration the parent's insets.

Overrides:
paint in class Canvas