All Packages Class Hierarchy This Package Previous Next Index
Class dpscomponents.panel.ImagePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----dpscomponents.panel.ImagePanel
- public class ImagePanel
- extends Panel
This is a (hopefully general) class used to turn images into
"layout-able" components with a definite size.
- Version:
- $Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:48 $.
- Author:
- Daren Stotler
-
ImagePanel(Applet, String)
- Constructor.
-
getMinimumSize()
- I assume this doesn't get used much.
-
getPreferredSize()
- This is the one I expect to get called.
-
paint(Graphics)
-
Ye olde paint method used to actually draw the image and
nothing more.
ImagePanel
public ImagePanel(Applet foo,
String img_name)
- Constructor. Use Applet here to make this more general.
- Parameters:
- foo - Applet which provides the CodeBase needed to
read the image
- img_name - String containing the name of the image to be read
paint
public void paint(Graphics g)
- Ye olde paint method used to actually draw the image and
nothing more.
- Parameters:
- g - Graphics context where the image will be drawn
- Overrides:
- paint in class Container
getMinimumSize
public Dimension getMinimumSize()
- I assume this doesn't get used much.
- Returns:
- a minimum Dimension for the panel
- Overrides:
- getMinimumSize in class Container
getPreferredSize
public Dimension getPreferredSize()
- This is the one I expect to get called.
- Returns:
- the preferred Dimension of the panel; same as the image size
- Overrides:
- getPreferredSize in class Container
All Packages Class Hierarchy This Package Previous Next Index