equal
deleted
inserted
replaced
39 import static sun.java2d.StateTrackable.State.*; |
39 import static sun.java2d.StateTrackable.State.*; |
40 import sun.java2d.StateTrackableDelegate; |
40 import sun.java2d.StateTrackableDelegate; |
41 |
41 |
42 import sun.awt.image.SunWritableRaster; |
42 import sun.awt.image.SunWritableRaster; |
43 |
43 |
|
44 import javax.tools.annotation.GenerateNativeHeader; |
|
45 |
44 /** |
46 /** |
45 * This class exists to wrap one or more data arrays. Each data array in |
47 * This class exists to wrap one or more data arrays. Each data array in |
46 * the DataBuffer is referred to as a bank. Accessor methods for getting |
48 * the DataBuffer is referred to as a bank. Accessor methods for getting |
47 * and setting elements of the DataBuffer's banks exist with and without |
49 * and setting elements of the DataBuffer's banks exist with and without |
48 * a bank specifier. The methods without a bank specifier use the default 0th |
50 * a bank specifier. The methods without a bank specifier use the default 0th |
63 * image classes use TYPE_BYTE, TYPE_USHORT, TYPE_INT, TYPE_SHORT, |
65 * image classes use TYPE_BYTE, TYPE_USHORT, TYPE_INT, TYPE_SHORT, |
64 * TYPE_FLOAT, and TYPE_DOUBLE DataBuffers to store image data. |
66 * TYPE_FLOAT, and TYPE_DOUBLE DataBuffers to store image data. |
65 * @see java.awt.image.Raster |
67 * @see java.awt.image.Raster |
66 * @see java.awt.image.SampleModel |
68 * @see java.awt.image.SampleModel |
67 */ |
69 */ |
|
70 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
71 @GenerateNativeHeader |
68 public abstract class DataBuffer { |
72 public abstract class DataBuffer { |
69 |
73 |
70 /** Tag for unsigned byte data. */ |
74 /** Tag for unsigned byte data. */ |
71 public static final int TYPE_BYTE = 0; |
75 public static final int TYPE_BYTE = 0; |
72 |
76 |