TinyLine
v2.0

com.tinyline.tiny2d
Interface TinyProducer


public interface TinyProducer

The TinyProducer interface provides an interface for objects which can produce the image data from the TinyBuffer object (pixels buffer). The TinyLine 2D API supports two imaging models:

If your application needs the producer/consumer model you need to provide the TinyProducer interface implementation.

Version:
1.11

Author:
Andrew Girow

Method Summary
 boolean hasConsumer()
          Determine if there is a consumer that is currently interested in data from this TinyProducer.
 void imageComplete()
          The imageComplete method is called when the TinyProducer is finished delivering all of the pixels to a consumer.
 void sendPixels()
          Send a rectangular region of the buffer of pixels to any consumer that is interested in the data from this TinyProducer.
 

Method Detail

hasConsumer

public boolean hasConsumer()
Determine if there is a consumer that is currently interested in data from this TinyProducer.


sendPixels

public void sendPixels()
Send a rectangular region of the buffer of pixels to any consumer that is interested in the data from this TinyProducer.


imageComplete

public void imageComplete()
The imageComplete method is called when the TinyProducer is finished delivering all of the pixels to a consumer.


TinyLine
v2.0

Provided under the terms of the TinyLine License Agreement that has been included with this distribution