01: /*
02: * $RCSfile: CoordinateImage.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:57:07 $
10: * $State: Exp $
11: */
12: package javax.media.jai;
13:
14: /**
15: * A class representing an image that is associated with a coordinate.
16: * This class is used with <code>ImageStack</code>.
17: *
18: * @see ImageStack
19: *
20: * @deprecated as of JAI 1.1. Use
21: * <code>AttributedImage</code> instead.
22: */
23: public class CoordinateImage {
24:
25: /** The image. */
26: public PlanarImage image;
27:
28: /**
29: * The coordinate associated with the image. The type of this
30: * parameter is <code>Object</code> so that the application may choose
31: * any class to represent a coordinate based on the individual's
32: * needs.
33: */
34: public Object coordinate;
35:
36: /**
37: * Constructor.
38: *
39: * @throws IllegalArgumentException if <code>pi</code> is <code>null</code>.
40: * @throws IllegalArgumentException if <code>c</code> is <code>null</code>.
41: */
42: public CoordinateImage(PlanarImage pi, Object c) {
43: if (pi == null || c == null) {
44: throw new IllegalArgumentException(JaiI18N
45: .getString("Generic0"));
46: }
47:
48: image = pi;
49: coordinate = c;
50: }
51: }
|