Class JDPImage

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPImage

public class JDPImage
extends Panel
Class JDPImage represents a class to load an image into a Panel.


Constructor Index

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

Method Index

 o getDimension()
Get the dimensions of this panel.
 o getHeight()
Get the height of this panel.
 o getImagePath()
Get the path to the current image.
 o getWidth()
Get the width of this panel.
 o layout()
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o setDimension(Dimension)
Set the dimensions of this panel.
 o setDimension(int, int)
Set the dimensions of this panel.
 o setHeight(int)
Set the height of this panel.
 o setImagePath(String)
Set the path to the image.
 o setWidth(int)
Set the width of this panel.
 o update(Graphics)

Constructors

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

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
 o JDPImage
 public JDPImage(JDPUser user,
                 String imageLoc)
Creates a Image Panel.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
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 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 setWidth
 public void setWidth(int width)
Set the width of this panel.

Parameters:
width - the new width of this panel.
 o getWidth
 public int getWidth()
Get the width of this panel.

Returns:
the current width of this panel.
 o setHeight
 public void setHeight(int height)
Set the height of this panel.

Parameters:
height - the new height of this panel.
 o getHeight
 public int getHeight()
Get the height of this panel.

Returns:
the current height of this panel.
 o setDimension
 public void setDimension(int width,
                          int height)
Set the dimensions of this panel.

Parameters:
width - the new width of this panel.
height - the new height of this panel.
 o setDimension
 public void setDimension(Dimension bounds)
Set the dimensions of this panel.

Parameters:
dimension - the new dimension of this panel.
 o getDimension
 public Dimension getDimension()
Get the dimensions of this panel.

Returns:
the current dimension of this panel.
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public synchronized void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public synchronized void update(Graphics g)
Overrides:
update in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container