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

Constructor Index

 o ImageSource()
Construct a new ImageSource Canvas with no image
 o ImageSource(Image)
 o ImageSource(int, int, Image)
Construct a new ImageSource Canvas with no image and given width and height

Method Index

 o clearImage()
Clear the Canvas, image = null
 o getImage()
Returns the displayed image
 o getImageName()
Returns the Image name
 o getMinimumSize()
 o getPreferredSize()
 o paint(Graphics)
 o setImage(String)
Set the Image and display it

Constructors

 o ImageSource
 public ImageSource()
Construct a new ImageSource Canvas with no image

 o ImageSource
 public ImageSource(Image image)
 o 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

Methods

 o setImage
 public void setImage(String fn)
Set the Image and display it

 o clearImage
 public void clearImage()
Clear the Canvas, image = null

 o getImage
 public Image getImage()
Returns the displayed image

 o getImageName
 public String getImageName()
Returns the Image name

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index