Package nl.colorize.multimedialib.stage
Class LoadStatus
java.lang.Object
nl.colorize.multimedialib.stage.LoadStatus
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 Summary
Modifier and TypeMethodDescriptionnl.colorize.util.ResourceFilegetFile()floatgetTime()booleanisLoaded()voidsetLoaded(boolean loaded) voidsetTime(float time) toString()static LoadStatustrack(nl.colorize.util.ResourceFile file, nl.colorize.util.Subject<?> operation) Creates aLoadStatusthat tracks the status of the asynchronous operation represented by theSubject.
-
Method Details
-
toString
-
track
public static LoadStatus track(nl.colorize.util.ResourceFile file, nl.colorize.util.Subject<?> operation) Creates aLoadStatusthat tracks the status of the asynchronous operation represented by theSubject. -
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)
-