com.sun.svg.component
Class LoadingScreen

java.lang.Object
  extended by com.sun.svg.component.LoadingScreen
All Implemented Interfaces:
ProgressiveInputStream.Listener

public class LoadingScreen
extends java.lang.Object
implements ProgressiveInputStream.Listener


Nested Class Summary
static interface LoadingScreen.Listener
          Interface that a class waiting for the SVGImage resource to be loaded should implement.
(package private)  class LoadingScreen.SVGImageLoadingTask
           
(package private)  class LoadingScreen.UpdateProgress
           
 
Field Summary
protected  SVGProgressBar loadProgressBar
          Horizontal Progress Bar.
 
Constructor Summary
LoadingScreen(javax.microedition.m2g.SVGAnimator svgAnimator, javax.microedition.m2g.SVGImage svgImage, java.lang.String svgImagePath, int svgImageSize, LoadingScreen.Listener listener)
          Creates a new instance of SVGImageLoadingScreen
 
Method Summary
 void streamProgress(float p)
          Called when more bytes have been read from the input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadProgressBar

protected SVGProgressBar loadProgressBar
Horizontal Progress Bar. The Progress Bar is used in the initial load screen.

Constructor Detail

LoadingScreen

public LoadingScreen(javax.microedition.m2g.SVGAnimator svgAnimator,
                     javax.microedition.m2g.SVGImage svgImage,
                     java.lang.String svgImagePath,
                     int svgImageSize,
                     LoadingScreen.Listener listener)
Creates a new instance of SVGImageLoadingScreen

Parameters:
svgAnimator - the associated SVGAnimator instance
svgImage - the associated SVGImage instance
svgImagePath - the path of the SVG image file to load
svgImageSize - the expected size for the SVGImage to load.
Method Detail

streamProgress

public void streamProgress(float p)
Called when more bytes have been read from the input stream.

Specified by:
streamProgress in interface ProgressiveInputStream.Listener
Parameters:
p - the current penetration in the input stream, in the [0, 1] interval.