|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.image.QTImageProducer
The QTImageProducer implements the java.awt.image.ImageProducer interface for a single source QuickTime object. The QuickTime source can be a single frame (ie. still image) or a mutliple frame source such as a movie, sprite world animation, effect, etc. The QTImageProducer can produce images for multiple ImageConsumers.
The isRedrawing() method returns true if the source QT object is an object that requires redrawing. In this case the ImageObserver of this Producer should explicitly call the redraw() method and repaint the resultant Image to see any changes in the source of the pixel data. For instance a typical movie will be a sequence of images over time, and for consequent frames to be seen the producer must be redraw. The act of redrawing the producer will also result in the registered consumers being notified and given the changed pixels. Redrawing can also be optimised to only redraw those pixels within a specified region.
When the source is originally added to the Producer it is drawn. If the source is not or does not require redrawing then consequent calls to redraw will have no effect as the source pixels have not changed. If the redrawing characteristics of the QTDrawable source change then you must call setRedrawing(true) to tell the producer that it should redraw the source's pixel data before the redraw method is called. By default an QTImageProduce is seen as potentially presenting dynamic or changing image data.
| Field Summary |
| Fields inherited from interface quicktime.app.image.Redrawable |
kMultiFrame, kSingleFrame |
| Constructor Summary | |
QTImageProducer(QTDrawable qtSource,
java.awt.Dimension initSize)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
addConsumer(java.awt.image.ImageConsumer ic)
Deprecated. since QTJava 6.1 |
QDGraphics |
getGWorld()
Deprecated. |
java.awt.Dimension |
getSize()
Deprecated. This returns the rendered size of the qtSource pixel data as specified in the constructor. |
boolean |
isConsumer(java.awt.image.ImageConsumer ic)
Deprecated. since QTJava 6.1 |
boolean |
isRedrawing()
Deprecated. since QTJava 6.1 |
boolean |
isSingleFrame()
Deprecated. since QTJava 6.1 |
void |
redraw(Region invalidRgn)
Deprecated. since QTJava 6.1 |
void |
removeConsumer(java.awt.image.ImageConsumer ic)
Deprecated. since QTJava 6.1 |
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
Deprecated. since QTJava 6.1 |
void |
setRedrawing(boolean redrawFlag)
Deprecated. since QTJava 6.1 |
void |
startProduction(java.awt.image.ImageConsumer ic)
Deprecated. since QTJava 6.1 |
void |
updateConsumers(Region invalidRgn)
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QTImageProducer(QTDrawable qtSource,
java.awt.Dimension initSize)
throws QTException
qtSource - the source of pixel data for the ImageProducer.initSize - the intial size of the source data| Method Detail |
public QDGraphics getGWorld()
public boolean isSingleFrame()
isSingleFrame in interface Redrawablepublic void addConsumer(java.awt.image.ImageConsumer ic)
addConsumer in interface java.awt.image.ImageProducerstartProduction(java.awt.image.ImageConsumer)public boolean isConsumer(java.awt.image.ImageConsumer ic)
isConsumer in interface java.awt.image.ImageProducerpublic void removeConsumer(java.awt.image.ImageConsumer ic)
removeConsumer in interface java.awt.image.ImageProducerpublic void startProduction(java.awt.image.ImageConsumer ic)
startProduction in interface java.awt.image.ImageProduceraddConsumer(java.awt.image.ImageConsumer)public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
ic.setHints(TOPDOWNLEFTRIGHT | < otherhints >); ic.setPixels(...); // As many times as needed ic.imageComplete();
requestTopDownLeftRightResend in interface java.awt.image.ImageProducerImageConsumer.setHints(int)
public void redraw(Region invalidRgn)
throws QTException
invalidRgn - if null the whole image is redrawn and all of the pixels
are grabbed and sent to the consumers. If not null then the qtSource
invalidates the region specified, which can result in a faster draw. Also only those
pixels that are within the bounds of the region are sent to the consumers.
QTException
public void updateConsumers(Region invalidRgn)
throws QTException
invalidRgn - enter null to copy all pixels, or specify a region that specifies the changed pixel data,
which can econimize the copying of the pixel data to only those areas that have changed.
QTExceptionpublic void setRedrawing(boolean redrawFlag)
setRedrawing in interface RedrawableredrawFlag - boolean determining whether the current image is redrawn (false)
of fresh or updated image data is first retrieved (true).public boolean isRedrawing()
isRedrawing in interface Redrawablepublic java.awt.Dimension getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||