Class LoadStatus

java.lang.Object
nl.colorize.multimedialib.stage.LoadStatus

public class LoadStatus extends Object
Tracks progress for media files that are loaded by the renderer. Can be used by applications to display a loading screen while the renderer is loading media files asynchronously.

A secondary use of this information is to provide performance statistics, since the information can be used to determine the loading time for every individual media asset, as well as the total loading time.

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • track

      public static LoadStatus track(nl.colorize.util.ResourceFile file, nl.colorize.util.Subject<?> operation)
      Creates a LoadStatus that tracks the status of the asynchronous operation represented by the Subject.
    • getFile

      public nl.colorize.util.ResourceFile getFile()
    • isLoaded

      public boolean isLoaded()
    • getTime

      public float getTime()
    • setLoaded

      public void setLoaded(boolean loaded)
    • setTime

      public void setTime(float time)