Package com.jme3.environment.generation
Class JobProgressAdapter<T>
java.lang.Object
com.jme3.environment.generation.JobProgressAdapter<T>
- Type Parameters:
T
- the type of result
- All Implemented Interfaces:
JobProgressListener<T>
Abstract Adapter class that implements optional methods of JobProgressListener.
Extends this class instead of implementing a JobProgressListener if you need
only a subset of method implemented.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JobProgressAdapter
public JobProgressAdapter()
-
-
Method Details
-
progress
public void progress(double value) Description copied from interface:JobProgressListener
Called when the process has made some progress.- Specified by:
progress
in interfaceJobProgressListener<T>
- Parameters:
value
- a value from 0 to 1 representing the percentage of completion of the process.
-
start
public void start()Description copied from interface:JobProgressListener
Called when the process starts.- Specified by:
start
in interfaceJobProgressListener<T>
-
step
Description copied from interface:JobProgressListener
Can be called when a step of the process has been completed with a relevant message.- Specified by:
step
in interfaceJobProgressListener<T>
- Parameters:
message
- the message stating of the particular step completion.
-
done
Description copied from interface:JobProgressListener
Called when the process is done.- Specified by:
done
in interfaceJobProgressListener<T>
- Parameters:
result
- the object generated by the process.
-