All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.Image

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.Container
                   |
                   +----com.bulletproof.gui.Panel
                           |
                           +----com.bulletproof.gui.Image

public class Image
extends Panel
implements Runnable
Class Image represents a class to load an image into a Panel.


Constructor Index

 o Image()
Creates a Image Panel.
 o Image(JDPUser)
Creates a Image Panel.
 o Image(String)
Creates a Image Panel.

Method Index

 o getHeight()
Get the height of this panel.
 o getImagePath()
Get the path to the current image.
 o getMinimumSize()
Returns the minimum size of this container.
 o getNativeImage()
Get a handle to the naitve image used to display this one in the emulator.
 o getWidth()
Get the width of this panel.
 o paint(Graphics)
Paints the container.
 o run()
 o setImagePath(String)
Set the path to the image.

Constructors

 o Image
 public Image()
Creates a Image Panel.

 o Image
 public Image(JDPUser user)
Creates a Image Panel.

 o Image
 public Image(String imageLoc)
Creates a Image Panel.

Parameters:
imageLoc - the partial or full path to the image. Presently only GIF and JPG formats are supported.

Methods

 o getImagePath
 public String getImagePath()
Get the path to the current image.

Returns:
the partial or full path to the image.
 o getNativeImage
 public Image getNativeImage()
Get a handle to the naitve image used to display this one in the emulator.

Returns:
a handle to the naitve image used to display this one in the emulator.
 o setImagePath
 public void setImagePath(String imageLoc)
Set the path to the image.

Parameters:
imageLoc - the partial or full path to the image. Presently only GIF and JPG formats are supported. If the the image is to be loaded to an applet then a URL should be used for this parameter.
 o getWidth
 public int getWidth()
Get the width of this panel.

Returns:
the current width of this panel.
 o getHeight
 public int getHeight()
Get the height of this panel.

Returns:
the current height of this panel.
 o paint
 public void paint(Graphics g)
Paints the container.

Overrides:
paint in class Container
 o run
 public void run()
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this container.

Overrides:
getMinimumSize in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index