Class spt.gui.ImagePanel
All Packages Class Hierarchy This Package Previous Next Index
Class spt.gui.ImagePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----spt.gui.ImagePanel
- public class ImagePanel
- extends Panel
A Panel that displays an Image.
-
ImagePanel(String)
- Creates an ImagePanel with the image in the specified file
(no good for applets).
-
ImagePanel(Applet, URL)
- Creates an ImagePanel with the image in the specified URL
(applets only).
-
createDisabledImage(Image, Component)
- Return a "grayed-out" version of the given image.
-
disableImage()
-
-
getImage()
-
-
loadImage(Component, String)
- Load an image.
-
loadImage(Applet, URL)
- Load an image.
-
paint(Graphics)
-
-
resizeToImage()
- Resize the Panel to the size of the current image.
-
scale(double)
- Scale the image.
ImagePanel
public ImagePanel(String file) throws FileNotFoundException
- Creates an ImagePanel with the image in the specified file
(no good for applets).
ImagePanel
public ImagePanel(Applet a,
URL file)
- Creates an ImagePanel with the image in the specified URL
(applets only).
loadImage
public static Image loadImage(Component comp,
String file) throws FileNotFoundException
- Load an image.
loadImage
public static Image loadImage(Applet a,
URL file)
- Load an image.
createDisabledImage
public static Image createDisabledImage(Image im,
Component comp)
- Return a "grayed-out" version of the given image.
disableImage
public void disableImage()
getImage
public Image getImage()
scale
public void scale(double pct)
- Scale the image. (1.0 = 100%).
resizeToImage
public void resizeToImage()
- Resize the Panel to the size of the current image.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
All Packages Class Hierarchy This Package Previous Next Index