Package com.jme3.environment.generation
Class RunnableWithProgress
java.lang.Object
com.jme3.environment.generation.RunnableWithProgress
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- IrradianceSphericalHarmonicsGenerator,- PrefilteredEnvMapFaceGenerator
Abstract runnable that can report its progress
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
listener
 
- 
- 
Constructor Details- 
RunnableWithProgresspublic RunnableWithProgress()
- 
RunnableWithProgress
 
- 
- 
Method Details- 
setEndprotected void setEnd(int end) set the end step value of the process.- Parameters:
- end- the desired end value (default=0)
 
- 
getProgresspublic double getProgress()return the current progress of the process.- Returns:
- fraction (≥0, ≤1)
 
- 
progressprotected void progress()adds one progression step to the process.
- 
resetprotected void reset()resets the progression of the process.
 
-