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
-
image
- The image to be drawn.
-
ImageComponent(Image)
-
-
paint(Graphics)
- Paints the image, taking into consideration the parent's insets.
image
private Image image
- The image to be drawn.
ImageComponent
public ImageComponent(Image inImage)
paint
public void paint(Graphics g)
- Paints the image, taking into consideration the parent's insets.
- Overrides:
- paint in class Canvas