001: /*
002: * @(#) $Header: /cvs/jai-operators/src/tests/ca/forklabs/media/jai/mock/MockRenderedImage.java,v 1.1 2007/05/03 20:23:18 forklabs Exp $
003: *
004: * Copyright (C) 2007 Forklabs Daniel Léonard
005: *
006: * This program is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU General Public License
008: * as published by the Free Software Foundation; either version 2
009: * of the License, or (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
019: */
020:
021: package ca.forklabs.media.jai.mock;
022:
023: import java.awt.Rectangle;
024: import java.awt.image.ColorModel;
025: import java.awt.image.Raster;
026: import java.awt.image.RenderedImage;
027: import java.awt.image.SampleModel;
028: import java.awt.image.WritableRaster;
029: import java.util.Vector;
030:
031: /**
032: * Class {@code MockRenderedImage} is an empty implementation of interface
033: * {@link RenderedImage}.
034: *
035: * @author <a href="mailto:forklabs at dev.java.net?subject=ca.forklabs.media.jai.mock.MockRenderedImage">Daniel Léonard</a>
036: * @version $Revision: 1.1 $
037: */
038: public class MockRenderedImage implements RenderedImage {
039:
040: /**
041: * Does nothing.
042: * @param raster ignored.
043: * @return always {@code null}.
044: */
045: @SuppressWarnings("unused")
046: public WritableRaster copyData(WritableRaster raster) {
047: return null;
048: }
049:
050: /**
051: * Does nothing.
052: * @return always {@code null}.
053: */
054: public ColorModel getColorModel() {
055: return null;
056: }
057:
058: /**
059: * Does nothing.
060: * @return always {@code null}.
061: */
062: public Raster getData() {
063: return null;
064: }
065:
066: /**
067: * Does nothing.
068: * @param rect ignored.
069: * @return always {@code null}.
070: */
071: @SuppressWarnings("unused")
072: public Raster getData(Rectangle rect) {
073: return null;
074: }
075:
076: /**
077: * Does nothing.
078: * @return always <em>0</em>.
079: */
080: public int getHeight() {
081: return 0;
082: }
083:
084: /**
085: * Does nothing.
086: * @return always <em>0</em>.
087: */
088: public int getMinTileX() {
089: return 0;
090: }
091:
092: /**
093: * Does nothing.
094: * @return always always <em>0</em>.
095: */
096: public int getMinTileY() {
097: return 0;
098: }
099:
100: /**
101: * Does nothing.
102: * @return always always <em>0</em>.
103: */
104: public int getMinX() {
105: return 0;
106: }
107:
108: /**
109: * Does nothing.
110: * @return always always <em>0</em>.
111: */
112: public int getMinY() {
113: return 0;
114: }
115:
116: /**
117: * Does nothing.
118: * @return always always <em>0</em>.
119: */
120: public int getNumXTiles() {
121: return 0;
122: }
123:
124: /**
125: * Does nothing.
126: * @return always always <em>0</em>.
127: */
128: public int getNumYTiles() {
129: return 0;
130: }
131:
132: /**
133: * Does nothing.
134: * @param name ignored.
135: * @return always {@code null}.
136: */
137: @SuppressWarnings("unused")
138: public Object getProperty(String name) {
139: return null;
140: }
141:
142: /**
143: * Does nothing.
144: * @return always {@code null}.
145: */
146: public String[] getPropertyNames() {
147: return null;
148: }
149:
150: /**
151: * Does nothing.
152: * @return always {@code null}.
153: */
154: public SampleModel getSampleModel() {
155: return null;
156: }
157:
158: /**
159: * Does nothing.
160: * @return always {@code null}.
161: */
162: public Vector<RenderedImage> getSources() {
163: return null;
164: }
165:
166: /**
167: * Does nothing.
168: * @param tileX ignored.
169: * @param tileY ignored.
170: * @return always {@code null}.
171: */
172: @SuppressWarnings("unused")
173: public Raster getTile(int tileX, int tileY) {
174: return null;
175: }
176:
177: /**
178: * Does nothing.
179: * @return always <em>0</em>.
180: */
181: public int getTileGridXOffset() {
182: return 0;
183: }
184:
185: /**
186: * Does nothing.
187: * @return always <em>0</em>.
188: */
189: public int getTileGridYOffset() {
190: return 0;
191: }
192:
193: /**
194: * Does nothing.
195: * @return always <em>0</em>.
196: */
197: public int getTileHeight() {
198: return 0;
199: }
200:
201: /**
202: * Does nothing.
203: * @return always <em>0</em>.
204: */
205: public int getTileWidth() {
206: return 0;
207: }
208:
209: /**
210: * Does nothing.
211: * @return always <em>0</em>.
212: */
213: public int getWidth() {
214: return 0;
215: }
216:
217: }
218:
219: /*
220: * $Log: MockRenderedImage.java,v $
221: * Revision 1.1 2007/05/03 20:23:18 forklabs
222: * Mocks.
223: *
224: */
|