public final class IteratorTask
extends org.sm.smtools.application.concurrent.ATask
IteratorTask
class provides a threaded task for partially iterating a fractal.
Note that this class cannot be subclassed!
Constructor and Description |
---|
IteratorTask(ScreenLocation s1,
ScreenLocation s2)
Constructs an
IteratorTask object. |
Modifier and Type | Method and Description |
---|---|
protected void |
executeTask()
Partially calculates the fractal in its own thread.
|
protected void |
finishTask()
This method is empty.
|
IterationBuffer |
getResult()
Returns the iteration results.
|
ScreenLocation |
getS1()
Returns the upper-left screen location.
|
ScreenLocation |
getS2()
Returns the lower-right screen location.
|
void |
installFractalIterator(AFractalIterator fractalIterator)
Installs the
FractalIterator that performs the fractal calculations. |
doInBackground, done, installCountDownLatch, installProgressUpdateGlassPane, process
public IteratorTask(ScreenLocation s1, ScreenLocation s2)
IteratorTask
object.s1
- the upper-left screen locations2
- the lower-right screen locationprotected void executeTask()
executeTask
in class org.sm.smtools.application.concurrent.ATask
protected void finishTask()
finishTask
in class org.sm.smtools.application.concurrent.ATask
public IterationBuffer getResult()
public ScreenLocation getS1()
public ScreenLocation getS2()
public void installFractalIterator(AFractalIterator fractalIterator)
FractalIterator
that performs the fractal calculations.fractalIterator
- the FractalIterator
that performs the fractal calculations