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.
-
ImageShowBean()
- Initialize the component size so that we dont stay invisible.
-
addPropertyChangeListener(PropertyChangeListener)
- PropertyChangeSupport methods.
-
getDoIntermediateUpdates()
- Get intermediate paint mode.
-
getImage()
- Get the image.
-
getImagePath()
- Get the image path.
-
main(String[])
-
-
paint(Graphics)
- Repaint the canvas.
-
removePropertyChangeListener(PropertyChangeListener)
-
-
setDoIntermediateUpdates(boolean)
- Set intermediate paint mode.
-
setImagePath(String)
- Set the image path and start preparing the image straight away.
ImageShowBean
public ImageShowBean()
- Initialize the component size so that we dont stay invisible.
main
public static void main(String argv[])
getImage
public Image getImage()
- Get the image.
getImagePath
public String getImagePath()
- Get the image path.
setImagePath
public void setImagePath(String path)
- Set the image path and start preparing the image straight away.
getDoIntermediateUpdates
public boolean getDoIntermediateUpdates()
- Get intermediate paint mode.
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.
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
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- PropertyChangeSupport methods.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
All Packages Class Hierarchy This Package Previous Next Index