01: /*
02: * $RCSfile: WritableRectIterFallback.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:55:46 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.iterator;
13:
14: import java.awt.Rectangle;
15: import java.awt.image.DataBuffer;
16: import java.awt.image.SampleModel;
17: import java.awt.image.WritableRenderedImage;
18: import javax.media.jai.iterator.WritableRectIter;
19:
20: /**
21: * @since EA2
22: */
23: public class WritableRectIterFallback extends RectIterFallback
24: implements WritableRectIter {
25:
26: protected WritableRenderedImage wim;
27:
28: public WritableRectIterFallback(WritableRenderedImage im,
29: Rectangle bounds) {
30: super (im, bounds);
31: this .wim = im;
32: }
33:
34: public void setSample(int s) {
35: sampleModel.setSample(localX, localY, b, s, dataBuffer);
36: }
37:
38: public void setSample(int b, int s) {
39: sampleModel.setSample(localX, localY, b, s, dataBuffer);
40: }
41:
42: public void setSample(float s) {
43: sampleModel.setSample(localX, localY, b, s, dataBuffer);
44: }
45:
46: public void setSample(int b, float s) {
47: sampleModel.setSample(localX, localY, b, s, dataBuffer);
48: }
49:
50: public void setSample(double s) {
51: sampleModel.setSample(localX, localY, b, s, dataBuffer);
52: }
53:
54: public void setSample(int b, double s) {
55: sampleModel.setSample(localX, localY, b, s, dataBuffer);
56: }
57:
58: public void setPixel(int[] iArray) {
59: sampleModel.setPixel(localX, localY, iArray, dataBuffer);
60: }
61:
62: public void setPixel(float[] fArray) {
63: sampleModel.setPixel(localX, localY, fArray, dataBuffer);
64: }
65:
66: public void setPixel(double[] dArray) {
67: sampleModel.setPixel(localX, localY, dArray, dataBuffer);
68: }
69: }
|