Class ImageFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ImageFrame

public class ImageFrame
extends Frame
A frame that resizes itself to fit the image passed into the constructor. The only component one of these windows is an ImageComponent.

Author:
Peter Sagerson, petersag@wpi.edu

Variable Index

 o image
 o imgHeight
 o imgWidth
 o READY

Constructor Index

 o ImageFrame(String, Image)

Method Index

 o handleEvent(Event)
 o imageUpdate(Image, int, int, int, int, int)
 o setupImage(int, int)

Variables

 o READY
 private final int READY
 o imgWidth
 int imgWidth
 o imgHeight
 int imgHeight
 o image
 ImageComponent image

Constructors

 o ImageFrame
 public ImageFrame(String title,
                   Image inImage)

Methods

 o imageUpdate
 public boolean imageUpdate(Image img,
                            int infoflags,
                            int x,
                            int y,
                            int width,
                            int height)
Overrides:
imageUpdate in class Component
 o handleEvent
 public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component
 o setupImage
 private void setupImage(int width,
                         int height)