All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.ImagePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----javaParse.ImagePanel
- public class ImagePanel
- extends Panel
a class that draws an image base on the imagePath/fileName
passed to the constructor
-
ImagePanel(String)
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
paint(Graphics)
-
-
update(Graphics)
-
ImagePanel
public ImagePanel(String imagePath)
- Parameters:
- imagePath - the path with the actual image file
pic.gif or pic.jpeg as the last element.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- Overrides:
- update in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Container
All Packages Class Hierarchy This Package Previous Next Index