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.
-
JDPImage(JDPUser)
- Creates a Image Panel.
-
JDPImage(JDPUser, String)
- Creates a Image Panel.
-
getDimension()
- Get the dimensions of this panel.
-
getHeight()
- Get the height of this panel.
-
getImagePath()
- Get the path to the current image.
-
getWidth()
- Get the width of this panel.
-
layout()
-
-
minimumSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
setDimension(Dimension)
- Set the dimensions of this panel.
-
setDimension(int, int)
- Set the dimensions of this panel.
-
setHeight(int)
- Set the height of this panel.
-
setImagePath(String)
- Set the path to the image.
-
setWidth(int)
- Set the width of this panel.
-
update(Graphics)
-
JDPImage
public JDPImage(JDPUser user)
- Creates a Image Panel.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
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.
getImagePath
public String getImagePath()
- Get the path to the current image.
- Returns:
- the partial or full path to the image.
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.
setWidth
public void setWidth(int width)
- Set the width of this panel.
- Parameters:
- width - the new width of this panel.
getWidth
public int getWidth()
- Get the width of this panel.
- Returns:
- the current width of this panel.
setHeight
public void setHeight(int height)
- Set the height of this panel.
- Parameters:
- height - the new height of this panel.
getHeight
public int getHeight()
- Get the height of this panel.
- Returns:
- the current height of this panel.
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.
setDimension
public void setDimension(Dimension bounds)
- Set the dimensions of this panel.
- Parameters:
- dimension - the new dimension of this panel.
getDimension
public Dimension getDimension()
- Get the dimensions of this panel.
- Returns:
- the current dimension of this panel.
layout
public void layout()
- Overrides:
- layout in class Container
paint
public synchronized void paint(Graphics g)
- Overrides:
- paint in class Container
update
public synchronized void update(Graphics g)
- Overrides:
- update in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container