All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.faidon.gui.ImageShowBean

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----fi.faidon.gui.ImageShowBean

public class ImageShowBean
extends Canvas
implements Serializable
Bean for showing an image in a canvas.


Constructor Index

 o ImageShowBean()
Initialize the component size so that we dont stay invisible.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
PropertyChangeSupport methods.
 o getDoIntermediateUpdates()
Get intermediate paint mode.
 o getImage()
Get the image.
 o getImagePath()
Get the image path.
 o main(String[])
 o paint(Graphics)
Repaint the canvas.
 o removePropertyChangeListener(PropertyChangeListener)
 o setDoIntermediateUpdates(boolean)
Set intermediate paint mode.
 o setImagePath(String)
Set the image path and start preparing the image straight away.

Constructors

 o ImageShowBean
 public ImageShowBean()
Initialize the component size so that we dont stay invisible.

Methods

 o main
 public static void main(String argv[])
 o getImage
 public Image getImage()
Get the image.

 o getImagePath
 public String getImagePath()
Get the image path.

 o setImagePath
 public void setImagePath(String path)
Set the image path and start preparing the image straight away.

 o getDoIntermediateUpdates
 public boolean getDoIntermediateUpdates()
Get intermediate paint mode.

 o setDoIntermediateUpdates
 public void setDoIntermediateUpdates(boolean value)
Set intermediate paint mode. If true, we do progressive painting, if false we draw the image only at the end.

 o paint
 public void paint(Graphics g)
Repaint the canvas. We also check when we know the width and the height for the first time and resize ourselves accordingly. The parent container is also notified about the change.

Overrides:
paint in class Canvas
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener l)
PropertyChangeSupport methods.

 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener l)

All Packages  Class Hierarchy  This Package  Previous  Next  Index