Package com.twelvemonkeys.image
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 $
- Author:
- Harald Kuhr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConsumer
(ImageConsumer pConsumer) protected abstract void
initConsumer
(ImageConsumer pConsumer) boolean
isConsumer
(ImageConsumer pConsumer) void
removeConsumer
(ImageConsumer pConsumer) void
requestTopDownLeftRightResend
(ImageConsumer pConsumer) This implementation silently ignores this instruction.protected abstract void
sendPixels
(ImageConsumer pConsumer) void
startProduction
(ImageConsumer pConsumer)
-
Field Details
-
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:
addConsumer
in interfaceImageProducer
-
removeConsumer
- Specified by:
removeConsumer
in 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:
requestTopDownLeftRightResend
in interfaceImageProducer
- Parameters:
pConsumer
- the consumer that requested the resend- See Also:
-
startProduction
- Specified by:
startProduction
in interfaceImageProducer
-
isConsumer
- Specified by:
isConsumer
in interfaceImageProducer
-
initConsumer
-
sendPixels
-