Class RunnableWithProgress

java.lang.Object
com.jme3.environment.generation.RunnableWithProgress
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
IrradianceSphericalHarmonicsGenerator, PrefilteredEnvMapFaceGenerator

public abstract class RunnableWithProgress extends Object implements Runnable
Abstract runnable that can report its progress
  • Field Details

  • Constructor Details

    • RunnableWithProgress

      public RunnableWithProgress()
    • RunnableWithProgress

      public RunnableWithProgress(JobProgressListener listener)
  • Method Details

    • setEnd

      protected void setEnd(int end)
      set the end step value of the process.
      Parameters:
      end - the desired end value (default=0)
    • getProgress

      public double getProgress()
      return the current progress of the process.
      Returns:
      fraction (≥0, ≤1)
    • progress

      protected void progress()
      adds one progression step to the process.
    • reset

      protected void reset()
      resets the progression of the process.