01: /*
02: * @(#) $Header: /cvs/jai-operators/src/tests/ca/forklabs/media/jai/mock/MockImageFunction.java,v 1.1 2007/06/13 18:47:48 forklabs Exp $
03: *
04: * Copyright (C) 2007 Forklabs Daniel Léonard
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: */
20:
21: package ca.forklabs.media.jai.mock;
22:
23: import javax.media.jai.ImageFunction;
24:
25: /**
26: * Class {@code MockImageFunction} is an empty implementation of class
27: * {@link ImageFunction}.
28: *
29: * @author <a href="mailto:forklabs at dev.java.net?subject=ca.forklabs.media.jai.mock.MockImageFunction">Daniel Léonard</a>
30: * @version $Revision: 1.1 $
31: */
32: public class MockImageFunction implements ImageFunction {
33:
34: /**
35: * Does nothing.
36: * @param startX ignored.
37: * @param startY ignored.
38: * @param deltaX ignored.
39: * @param deltaY ignored.
40: * @param countX ignored.
41: * @param countY ignored.
42: * @param element ignored.
43: * @param real ignored.
44: * @param imag ignored.
45: */
46: public void getElements(float startX, float startY, float deltaX,
47: float deltaY, int countX, int countY, int element,
48: float[] real, float[] imag) {
49: // do nothing
50: }
51:
52: /**
53: * Does nothing.
54: * @param startX ignored.
55: * @param startY ignored.
56: * @param deltaX ignored.
57: * @param deltaY ignored.
58: * @param countX ignored.
59: * @param countY ignored.
60: * @param element ignored.
61: * @param real ignored.
62: * @param imag ignored.
63: */
64: public void getElements(double startX, double startY,
65: double deltaX, double deltaY, int countX, int countY,
66: int element, double[] real, double[] imag) {
67: // do nothing
68: }
69:
70: /**
71: * Does nothing.
72: * @return always <em>0</em>.
73: */
74: public int getNumElements() {
75: return 0;
76: }
77:
78: /**
79: * Does nothing.
80: * @return always {@code false}.
81: */
82: public boolean isComplex() {
83: return false;
84: }
85:
86: }
87:
88: /*
89: * $Log: MockImageFunction.java,v $
90: * Revision 1.1 2007/06/13 18:47:48 forklabs
91: * Empty implementation of the imagefunction interface.
92: *
93: */
|