Class RayTracerFrame.RenderTask

java.lang.Object
  extended by javax.swing.SwingWorker<java.lang.Object,java.lang.Object>
      extended by RayTracerFrame.RenderTask
All Implemented Interfaces:
IProgressable, java.lang.Runnable, java.util.concurrent.Future<java.lang.Object>, java.util.concurrent.RunnableFuture<java.lang.Object>
Enclosing class:
RayTracerFrame

public class RayTracerFrame.RenderTask
extends javax.swing.SwingWorker<java.lang.Object,java.lang.Object>
implements IProgressable

A background task to handle rendering.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
RayTracerFrame.RenderTask(RayTracer rayTracer)
           
 
Method Summary
 java.lang.Object doInBackground()
           
 boolean isStarted()
           
 void updateProgress(int progress)
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, removePropertyChangeListener, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RayTracerFrame.RenderTask

public RayTracerFrame.RenderTask(RayTracer rayTracer)
Method Detail

doInBackground

public java.lang.Object doInBackground()
                                throws java.lang.Exception
Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.Object,java.lang.Object>
Throws:
java.lang.Exception

updateProgress

public void updateProgress(int progress)
Specified by:
updateProgress in interface IProgressable

isStarted

public boolean isStarted()