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.
-
Image()
- Creates a Image Panel.
-
Image(JDPUser)
- Creates a Image Panel.
-
Image(String)
- Creates a Image Panel.
-
getHeight()
- Get the height of this panel.
-
getImagePath()
- Get the path to the current image.
-
getMinimumSize()
-
Returns the minimum size of this container.
-
getNativeImage()
- Get a handle to the naitve image used to display this one in the emulator.
-
getWidth()
- Get the width of this panel.
-
paint(Graphics)
-
Paints the container.
-
run()
-
-
setImagePath(String)
- Set the path to the image.
Image
public Image()
- Creates a Image Panel.
Image
public Image(JDPUser user)
- Creates a Image Panel.
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.
getImagePath
public String getImagePath()
- Get the path to the current image.
- Returns:
- the partial or full path to the image.
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.
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.
getWidth
public int getWidth()
- Get the width of this panel.
- Returns:
- the current width of this panel.
getHeight
public int getHeight()
- Get the height of this panel.
- Returns:
- the current height of this panel.
paint
public void paint(Graphics g)
- Paints the container.
- Overrides:
- paint in class Container
run
public void run()
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