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.
-
SlideshowVisual()
-
-
SlideshowVisual(String[])
- Constructor used by the builder.
-
SlideshowVisual(WizardTreeManager, Route)
- Constructor used at runtime.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this visual.
-
deserialize(DataInput)
- Deserialize this ProgressVisual from the specified input
stream.
-
getMinimumSize()
- The minimum size of this panel.
-
getPreferredSize()
- The preferred size of this panel.
-
imageUpdate(Image, int, int, int, int, int)
- Sets allImagesLoaded, if they have indeed been loaded.
-
paint(Graphics)
-
Paints the current image pointed to by currentImage.
-
serialize(DataOutput)
- Serialize this ProgressVisual to the specified output
stream.
-
setProgress(int)
- Sets progress for this progressVisual.
-
start()
- This method is called when all images are loaded and ready
to be displayed.
SlideshowVisual
public SlideshowVisual()
SlideshowVisual
public SlideshowVisual(String imageNames[])
- Constructor used by the builder.
SlideshowVisual
public SlideshowVisual(WizardTreeManager wizardManager,
Route route)
- Constructor used at runtime.
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
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
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
start
public void start()
- This method is called when all images are loaded and ready
to be displayed.
- Overrides:
- start in class ProgressVisual
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
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
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
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
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