All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.panels.ImageVisual

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.sun.wizards.panels.ProgressVisual
                                   |
                                   +----com.sun.wizards.panels.ImageVisual

public class ImageVisual
extends ProgressVisual
implements ImageObserver
ImageVisual is an object that displays a single image on the progress bar.


Constructor Index

 o ImageVisual()
No-arg constructor used to make an empty ImageVisual
 o ImageVisual(String)
Constructor used by the builder.
 o ImageVisual(WizardTreeManager, Route)
Constructor to create new Panel with no image

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this visual.
 o deserialize(DataInput)
Deserialize this ProgressVisual from the specified input stream.
 o getMinimumSize()
The minimum size of this panel.
 o getPreferredSize()
The preferred size of this panel.
 o imageUpdate(Image, int, int, int, int, int)
Determines whether image has fully loaded.
 o paint(Graphics)
Paints the image.
 o serialize(DataOutput)
Serialize this ProgressVisual to the specified output stream.

Constructors

 o ImageVisual
 public ImageVisual()
No-arg constructor used to make an empty ImageVisual

 o ImageVisual
 public ImageVisual(WizardTreeManager wizardManager,
                    Route route)
Constructor to create new Panel with no image

Parameters:
wizardManager - The WizardTreeManager that will manage this panel
route - The desired route to the component
 o ImageVisual
 public ImageVisual(String imageName)
Constructor used by the builder.

Parameters:
imageName - The name of the image to display.

Methods

 o getMinimumSize
 public Dimension getMinimumSize()
The minimum size of this panel. Usually the same as the image size.

Returns:
The minimum size of this panel.
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
The preferred size of this panel. Usually the same as the minimum size.

Returns:
The preferred size of this panel.
Overrides:
getPreferredSize in class Container
 o paint
 public void paint(Graphics g)
Paints the image. Waits until the picture is fully loaded before painting.

Parameters:
g - The Graphics context for this panel. Use getGraphics() to obtain.
Overrides:
paint in class Container
 o imageUpdate
 public boolean imageUpdate(Image image,
                            int infoFlags,
                            int x,
                            int y,
                            int width,
                            int height)
Determines whether image has fully loaded.

Parameters:
image - The image in question
infoFlags - Flags determining what information is available for the image.
x - Not used
y - Not used
width - The image's width, if it can be determined
height - The image's height, if it can be determined
Returns:
Whether the image has been loaded fully or not
Overrides:
imageUpdate in class Component
 o serialize
 public void serialize(DataOutput out)
Serialize this ProgressVisual to the specified output stream.

Parameters:
out - The output stream to which this ProgressVisual will be serialized.
Overrides:
serialize in class ProgressVisual
 o deserialize
 public void deserialize(DataInput in)
Deserialize this ProgressVisual from the specified input stream.

Parameters:
in - The input stream from which this ProgressVisual will be deserialized.
Overrides:
deserialize in class ProgressVisual
 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Get the runtime classes required by this visual.

Parameters:
resourceVector - The vector containing all runtime resources for this wizard.
Overrides:
addRuntimeResources in class ProgressVisual

All Packages  Class Hierarchy  This Package  Previous  Next  Index