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
-
image
-
-
imgHeight
-
-
imgWidth
-
-
READY
-
-
ImageFrame(String, Image)
-
-
handleEvent(Event)
-
-
imageUpdate(Image, int, int, int, int, int)
-
-
setupImage(int, int)
-
READY
private final int READY
imgWidth
int imgWidth
imgHeight
int imgHeight
image
ImageComponent image
ImageFrame
public ImageFrame(String title,
Image inImage)
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
- Overrides:
- imageUpdate in class Component
handleEvent
public boolean handleEvent(Event evt)
- Overrides:
- handleEvent in class Component
setupImage
private void setupImage(int width,
int height)