com.jmex.game.state.load
Class NullLoader

java.lang.Object
  extended by com.jmex.game.state.load.NullLoader
All Implemented Interfaces:
Loader

public class NullLoader
extends java.lang.Object
implements Loader

Useful for scenarios where you may want to conditionally display a Loader but don't want to add all the checks in your code. This loader does nothing.

Author:
Matthew D. Hicks

Constructor Summary
NullLoader()
           
 
Method Summary
 float increment()
           
 float increment(int steps)
           
 float increment(int steps, java.lang.String activity)
           
 float increment(java.lang.String activity)
           
 void setProgress(float progress)
           
 void setProgress(float progress, java.lang.String activity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLoader

public NullLoader()
Method Detail

increment

public float increment()
Specified by:
increment in interface Loader

increment

public float increment(int steps)
Specified by:
increment in interface Loader

increment

public float increment(java.lang.String activity)
Specified by:
increment in interface Loader

increment

public float increment(int steps,
                       java.lang.String activity)
Specified by:
increment in interface Loader

setProgress

public void setProgress(float progress)
Specified by:
setProgress in interface Loader

setProgress

public void setProgress(float progress,
                        java.lang.String activity)
Specified by:
setProgress in interface Loader