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


Constructor Index

 o ImagePanel(String)

Method Index

 o getMinimumSize()
 o getPreferredSize()
 o paint(Graphics)
 o update(Graphics)

Constructors

 o ImagePanel
 public ImagePanel(String imagePath)
Parameters:
imagePath - the path with the actual image file pic.gif or pic.jpeg as the last element.

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index