All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.panels.SlideshowVisual

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

public class SlideshowVisual
extends ProgressVisual
implements ImageObserver
This visual displays a set of panels during the execution of a sequence. The each image set into this visual will be displayed during an equal length of the total progress.


Constructor Index

 o SlideshowVisual()
 o SlideshowVisual(String[])
Constructor used by the builder.
 o SlideshowVisual(WizardTreeManager, Route)
Constructor used at runtime.

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)
Sets allImagesLoaded, if they have indeed been loaded.
 o paint(Graphics)
Paints the current image pointed to by currentImage.
 o serialize(DataOutput)
Serialize this ProgressVisual to the specified output stream.
 o setProgress(int)
Sets progress for this progressVisual.
 o start()
This method is called when all images are loaded and ready to be displayed.

Constructors

 o SlideshowVisual
 public SlideshowVisual()
 o SlideshowVisual
 public SlideshowVisual(String imageNames[])
Constructor used by the builder.

 o SlideshowVisual
 public SlideshowVisual(WizardTreeManager wizardManager,
                        Route route)
Constructor used at runtime.

Methods

 o setProgress
 public void setProgress(int currentProgress)
Sets progress for this progressVisual. Subclasses should override this.

Parameters:
currentProgress - The progress, measured between 0 and 100.
Overrides:
setProgress in class ProgressVisual
 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 start
 public void start()
This method is called when all images are loaded and ready to be displayed.

Overrides:
start in class ProgressVisual
 o paint
 public void paint(Graphics g)
Paints the current image pointed to by currentImage. Waits until each 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)
Sets allImagesLoaded, if they have indeed been loaded. Returns result.

Parameters:
image - The image in question
infoFlags - Flags determining what information is available about 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