Methods Summary |
---|
void | doCalc(int i)
// Calculate section i of the fractal
|
public void | paint(java.awt.Graphics g)
// paint the calculated sections
|
public void | run()
for (int i = 0; i < nSections && sectionsToCalculate; i++) {
doCalc(i);
repaint();
}
|
public void | start()
Thread current = Thread.currentThread();
calcThread = new Thread(this);
calcThread.setPriority(current.getPriority() - 1);
calcThread.start();
|
public void | stop()
sectionsToCalculate = false;
|