jfract V1.0a

org.jfract.util
Class PictureProcessor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.jfract.util.PictureProcessor
All Implemented Interfaces:
java.lang.Runnable

public class PictureProcessor
extends java.lang.Thread

This class is a thread. The goal is to compute the graphics with a thread that give a time for the processor


Field Summary
private  AbstractFractalBean fractalBean
           
private  java.awt.Graphics gfx
           
private  java.awt.image.BufferedImage img
           
private  CompletionListener listener
           
private static org.apache.log4j.Category log4j_category
           
private  boolean repaint
           
private static java.lang.String[] rmiList
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
PictureProcessor(AbstractFractalBean fractalBean, java.awt.image.BufferedImage img, CompletionListener listener, boolean repaint)
          the constructor
 
Method Summary
 void run()
          If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log4j_category

private static final org.apache.log4j.Category log4j_category

fractalBean

private AbstractFractalBean fractalBean

listener

private CompletionListener listener

gfx

private java.awt.Graphics gfx

img

private java.awt.image.BufferedImage img

repaint

private boolean repaint

rmiList

private static java.lang.String[] rmiList
Constructor Detail

PictureProcessor

public PictureProcessor(AbstractFractalBean fractalBean,
                        java.awt.image.BufferedImage img,
                        CompletionListener listener,
                        boolean repaint)
the constructor
Parameters:
fractalBean - the fractal bean
img - the bufferedImage to paint on
listener - the completion listener to tell the completion
repaint - reapint the componant at the end
Method Detail

run

public void run()
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.

Subclasses of Thread should override this method.

Overrides:
run in class java.lang.Thread
See Also:
Thread.start(), Thread.stop(), Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String), Runnable.run()

jfract V1.0a

Generee le 27.09.2002 08:21:59 PM