01: /*
02: * CImage.java
03: *
04: * Created on February 17, 2004, 3:47 AM
05: */
06:
07: package org.netbeans.imagecache;
08:
09: import java.awt.image.BufferedImage;
10: import java.awt.image.ColorModel;
11: import java.awt.image.ImageProducer;
12: import java.awt.image.Raster;
13: import java.awt.image.WritableRaster;
14: import java.util.Hashtable;
15: import java.util.Vector;
16:
17: /** XXX this class is only for diagnostics - delete it when stabilized.
18: *
19: * @author tim
20: */
21: public class CImage extends BufferedImage {
22: private Raster raster;
23:
24: /** Creates a new instance of CImage */
25: public CImage(ColorModel cm, WritableRaster raster,
26: boolean isRasterPremultiplied, Hashtable properties) {
27: super (cm, raster, isRasterPremultiplied, properties);
28: this .raster = raster;
29: }
30:
31: public Raster getData() {
32: return raster;
33: }
34:
35: public Vector getSources() {
36: System.err.println("GetSources...");
37: Thread.dumpStack();
38: return null;
39: }
40:
41: public ImageProducer getSource() {
42: System.err.println("GET SOURCE");
43: Thread.dumpStack();
44: return null;
45: }
46: }
|