Class AbstractImageSource
java.lang.Object
com.twelvemonkeys.image.AbstractImageSource
- All Implemented Interfaces:
ImageProducer
AbstractImageSource
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/AbstractImageSource.java#1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConsumer(ImageConsumer pConsumer) protected abstract voidinitConsumer(ImageConsumer pConsumer) booleanisConsumer(ImageConsumer pConsumer) voidremoveConsumer(ImageConsumer pConsumer) voidrequestTopDownLeftRightResend(ImageConsumer pConsumer) This implementation silently ignores this instruction.protected abstract voidsendPixels(ImageConsumer pConsumer) voidstartProduction(ImageConsumer pConsumer)
-
Field Details
-
consumers
-
width
protected int width -
height
protected int height -
xOff
protected int xOff -
yOff
protected int yOff
-
-
Constructor Details
-
AbstractImageSource
public AbstractImageSource()
-
-
Method Details
-
addConsumer
- Specified by:
addConsumerin interfaceImageProducer
-
removeConsumer
- Specified by:
removeConsumerin interfaceImageProducer
-
requestTopDownLeftRightResend
This implementation silently ignores this instruction. If pixel data is not in TDLR order by default, subclasses must override this method.- Specified by:
requestTopDownLeftRightResendin interfaceImageProducer- Parameters:
pConsumer- the consumer that requested the resend- See Also:
-
startProduction
- Specified by:
startProductionin interfaceImageProducer
-
isConsumer
- Specified by:
isConsumerin interfaceImageProducer
-
initConsumer
-
sendPixels
-