Class JobProgressAdapter<T>

java.lang.Object
com.jme3.environment.generation.JobProgressAdapter<T>
Type Parameters:
T - the type of result
All Implemented Interfaces:
JobProgressListener<T>

public abstract class JobProgressAdapter<T> extends Object implements 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    done(T result)
    Called when the process is done.
    void
    progress(double value)
    Called when the process has made some progress.
    void
    Called when the process starts.
    void
    step(String message)
    Can be called when a step of the process has been completed with a relevant message.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface JobProgressListener<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 interface JobProgressListener<T>
    • step

      public void step(String message)
      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 interface JobProgressListener<T>
      Parameters:
      message - the message stating of the particular step completion.
    • done

      public abstract void done(T result)
      Description copied from interface: JobProgressListener
      Called when the process is done.
      Specified by:
      done in interface JobProgressListener<T>
      Parameters:
      result - the object generated by the process.