All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.ImageSource
java.lang.Object
|
+----java.awt.Component
|
+----fr.l2f.gui.ImageSource
- public class ImageSource
- extends Component
-
ImageSource()
- Construct a new ImageSource Canvas with no image
-
ImageSource(Image)
-
-
ImageSource(int, int, Image)
- Construct a new ImageSource Canvas with no image
and given width and height
-
clearImage()
- Clear the Canvas, image = null
-
getImage()
- Returns the displayed image
-
getImageName()
- Returns the Image name
-
getMinimumSize()
-
-
getPreferredSize()
-
-
paint(Graphics)
-
-
setImage(String)
- Set the Image and display it
ImageSource
public ImageSource()
- Construct a new ImageSource Canvas with no image
ImageSource
public ImageSource(Image image)
ImageSource
public ImageSource(int w,
int h,
Image image)
- Construct a new ImageSource Canvas with no image
and given width and height
- Parameters:
- w - thw width of the image
- h - the height
setImage
public void setImage(String fn)
- Set the Image and display it
clearImage
public void clearImage()
- Clear the Canvas, image = null
getImage
public Image getImage()
- Returns the displayed image
getImageName
public String getImageName()
- Returns the Image name
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index