Class MessageProcessor
java.lang.Object
|
+----MessageProcessor
- public class MessageProcessor
- extends Object
- implements Runnable
This class provides synchronization among active color space frames.
It queues up and dispatches messages from the frames.
- See Also:
- ColorSpaceMsg, UpdateState
-
daddy
- an object that must be informed about receiving window closing event.
-
MessageProcessor(ColorSpaceFrame[], UpdateState)
- Constructs message processor.
-
postMessage(ColorSpaceMsg)
- Adds a new message into the queue.
-
run()
- Implementation of the Runnable interface.
daddy
UpdateState daddy
- an object that must be informed about receiving window closing event.
MessageProcessor
public MessageProcessor(ColorSpaceFrame frames[],
UpdateState daddy)
- Constructs message processor.
- Parameters:
- frames[] - array of color space frames.
- daddy - object that must be informed about receiving window
closing event.
run
public void run()
- Implementation of the Runnable interface. The thread runs
all the queued events are dispatched.
postMessage
public synchronized void postMessage(ColorSpaceMsg msg)
- Adds a new message into the queue.
- Parameters:
- msg - a new message.