jdk/src/share/classes/java/awt/image/DataBuffer.java
changeset 12813 c10ab96dcf41
parent 5506 202f599c92aa
child 16734 da1901d79073
equal deleted inserted replaced
12491:b3a91113026c 12813:c10ab96dcf41
    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