org.xith3d.resources
Class DelayedLoadingScreenUpdater

java.lang.Object
  extended by org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
      extended by org.xith3d.resources.DelayedLoadingScreenUpdater
All Implemented Interfaces:
ScheduledOperation, Updatable, LoadingScreenUpdater

public class DelayedLoadingScreenUpdater
extends ScheduledOperationImpl
implements LoadingScreenUpdater

This LoadingScreenUpdater updates a loading screen within the RenderLoop's thread.


Constructor Summary
DelayedLoadingScreenUpdater(LoadingScreenUpdater loadingScreenUpdater)
           
 
Method Summary
 void init(int maxValue, java.lang.String caption, java.lang.String backgroundTexture)
          Initializes the progress, caption and background image.
 void init(int maxValue, java.lang.String caption, Texture2D backgroundTexture)
          Initializes the progress, caption and background image.
 void update()
          Updates the progress value incremented by one and leaves the caption unchanged.
 void update(int incValue)
          Updates the progress value and leaves the caption unchanged.
 void update(int incValue, java.lang.String caption)
          Updates the progress value and caption.
 void update(int incValue, java.lang.String caption, java.lang.String backgroundTexture)
          Updates the progress value, caption and background image.
 void update(int incValue, java.lang.String caption, Texture2D backgroundTexture)
          Updates the progress value, caption and background image.
 void update(int incValue, Texture2D backgroundTexture)
          Updates the progress value and background image.
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 void update(java.lang.String caption)
          Updates the progress value incremented by one and sets the new caption.
 void update(Texture2D backgroundTexture)
          Increases the progress value by one and updates the background image.
 void updateOnly(java.lang.String caption)
          Updates the caption only.
 void updateOnly(Texture2D backgroundTexture)
          Updates the background image only.
 
Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
isAlive, isPersistent, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedLoadingScreenUpdater

public DelayedLoadingScreenUpdater(LoadingScreenUpdater loadingScreenUpdater)
Parameters:
loadingScreenUpdater -
Method Detail

init

public void init(int maxValue,
                 java.lang.String caption,
                 Texture2D backgroundTexture)
Initializes the progress, caption and background image. The progress value is resetted to zero.

Specified by:
init in interface LoadingScreenUpdater
Parameters:
maxValue - the new maximum progress value
caption - the new caption (or null to keep the old one)
backgroundTexture - the new background Texture (or null to keep the old one)

init

public final void init(int maxValue,
                       java.lang.String caption,
                       java.lang.String backgroundTexture)
Initializes the progress, caption and background image. The progress value is resetted to zero.

Specified by:
init in interface LoadingScreenUpdater
Parameters:
maxValue - the new maximum progress value
caption - the new caption (or null to keep the old one)
backgroundTexture - the new background Texture (or null to keep the old one)

update

public void update(int incValue,
                   java.lang.String caption,
                   Texture2D backgroundTexture)
Updates the progress value, caption and background image.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
incValue - the value to add to the current progress value
caption - the new caption (or null to keep the old one)
backgroundTexture - the new background Texture (or null to keep the old one)

update

public final void update(int incValue,
                         Texture2D backgroundTexture)
Updates the progress value and background image.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
incValue - the value to add to the current progress value
backgroundTexture - the new background Texture (or null to keep the old one)

update

public final void update(Texture2D backgroundTexture)
Increases the progress value by one and updates the background image.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
backgroundTexture - the new background Texture (or null to keep the old one)

updateOnly

public final void updateOnly(Texture2D backgroundTexture)
Updates the background image only.

Specified by:
updateOnly in interface LoadingScreenUpdater
Parameters:
backgroundTexture - the new background Texture (or null to keep the old one)

update

public final void update(int incValue,
                         java.lang.String caption,
                         java.lang.String backgroundTexture)
Updates the progress value, caption and background image.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
incValue - the value to add to the current progress value
caption - the new caption (or null to keep the old one)
backgroundTexture - the new background Texture (or null to keep the old one)

update

public final void update(int incValue,
                         java.lang.String caption)
Updates the progress value and caption.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
incValue - the value to add to the current progress value
caption - the new caption (or null to keep the old one)

update

public final void update(int incValue)
Updates the progress value and leaves the caption unchanged.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
incValue - the value to add to the current progress value

updateOnly

public final void updateOnly(java.lang.String caption)
Updates the caption only.

Specified by:
updateOnly in interface LoadingScreenUpdater
Parameters:
caption - the new caption (or null to keep the old one)

update

public final void update(java.lang.String caption)
Updates the progress value incremented by one and sets the new caption.

Specified by:
update in interface LoadingScreenUpdater
Parameters:
caption - the new caption (or null to keep the old one)

update

public final void update()
Updates the progress value incremented by one and leaves the caption unchanged.

Specified by:
update in interface LoadingScreenUpdater

update

public void update(long gameTime,
                   long frameTime,
                   UpdatingThread.TimingMode timingMode)
Updates this Updatable object.

Specified by:
update in interface Updatable
Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.