jdk/src/java.desktop/share/classes/java/awt/image/SampleModel.java
changeset 32865 f9cb6e427f9e
parent 25859 3317bb8137f4
child 35667 ed476aba94de
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
    97     /** Data type of the DataBuffer storing the pixel data.
    97     /** Data type of the DataBuffer storing the pixel data.
    98      *  @see java.awt.image.DataBuffer
    98      *  @see java.awt.image.DataBuffer
    99      */
    99      */
   100     protected int dataType;
   100     protected int dataType;
   101 
   101 
   102     static private native void initIDs();
   102     private static native void initIDs();
   103     static {
   103     static {
   104         ColorModel.loadLibraries();
   104         ColorModel.loadLibraries();
   105         initIDs();
   105         initIDs();
   106     }
   106     }
   107 
   107 
   151 
   151 
   152     /** Returns the width in pixels.
   152     /** Returns the width in pixels.
   153      *  @return the width in pixels of the region of image data
   153      *  @return the width in pixels of the region of image data
   154      *          that this <code>SampleModel</code> describes.
   154      *          that this <code>SampleModel</code> describes.
   155      */
   155      */
   156     final public int getWidth() {
   156     public final int getWidth() {
   157          return width;
   157          return width;
   158     }
   158     }
   159 
   159 
   160     /** Returns the height in pixels.
   160     /** Returns the height in pixels.
   161      *  @return the height in pixels of the region of image data
   161      *  @return the height in pixels of the region of image data
   162      *          that this <code>SampleModel</code> describes.
   162      *          that this <code>SampleModel</code> describes.
   163      */
   163      */
   164     final public int getHeight() {
   164     public final int getHeight() {
   165          return height;
   165          return height;
   166     }
   166     }
   167 
   167 
   168     /** Returns the total number of bands of image data.
   168     /** Returns the total number of bands of image data.
   169      *  @return the number of bands of image data that this
   169      *  @return the number of bands of image data that this
   170      *          <code>SampleModel</code> describes.
   170      *          <code>SampleModel</code> describes.
   171      */
   171      */
   172     final public int getNumBands() {
   172     public final int getNumBands() {
   173          return numBands;
   173          return numBands;
   174     }
   174     }
   175 
   175 
   176     /** Returns the number of data elements needed to transfer a pixel
   176     /** Returns the number of data elements needed to transfer a pixel
   177      *  via the getDataElements and setDataElements methods.  When pixels
   177      *  via the getDataElements and setDataElements methods.  When pixels
   191     public abstract int getNumDataElements();
   191     public abstract int getNumDataElements();
   192 
   192 
   193     /** Returns the data type of the DataBuffer storing the pixel data.
   193     /** Returns the data type of the DataBuffer storing the pixel data.
   194      *  @return the data type.
   194      *  @return the data type.
   195      */
   195      */
   196     final public int getDataType() {
   196     public final int getDataType() {
   197         return dataType;
   197         return dataType;
   198     }
   198     }
   199 
   199 
   200     /** Returns the TransferType used to transfer pixels via the
   200     /** Returns the TransferType used to transfer pixels via the
   201      *  getDataElements and setDataElements methods.  When pixels
   201      *  getDataElements and setDataElements methods.  When pixels