src/java.desktop/share/classes/java/awt/image/Raster.java

Print this page

        

*** 165,175 **** protected int numDataElements; /** The parent of this Raster, or null. */ protected Raster parent; ! static private native void initIDs(); static { ColorModel.loadLibraries(); initIDs(); } --- 165,175 ---- protected int numDataElements; /** The parent of this Raster, or null. */ protected Raster parent; ! private static native void initIDs(); static { ColorModel.loadLibraries(); initIDs(); }
*** 1137,1147 **** * coordinate from the Raster coordinate system to the SampleModel * coordinate system, this value must be subtracted. * @return the X translation from the coordinate space of the * Raster's SampleModel to that of the Raster. */ ! final public int getSampleModelTranslateX() { return sampleModelTranslateX; } /** * Returns the Y translation from the coordinate system of the --- 1137,1147 ---- * coordinate from the Raster coordinate system to the SampleModel * coordinate system, this value must be subtracted. * @return the X translation from the coordinate space of the * Raster's SampleModel to that of the Raster. */ ! public final int getSampleModelTranslateX() { return sampleModelTranslateX; } /** * Returns the Y translation from the coordinate system of the
*** 1149,1159 **** * coordinate from the Raster coordinate system to the SampleModel * coordinate system, this value must be subtracted. * @return the Y translation from the coordinate space of the * Raster's SampleModel to that of the Raster. */ ! final public int getSampleModelTranslateY() { return sampleModelTranslateY; } /** * Create a compatible WritableRaster the same size as this Raster with --- 1149,1159 ---- * coordinate from the Raster coordinate system to the SampleModel * coordinate system, this value must be subtracted. * @return the Y translation from the coordinate space of the * Raster's SampleModel to that of the Raster. */ ! public final int getSampleModelTranslateY() { return sampleModelTranslateY; } /** * Create a compatible WritableRaster the same size as this Raster with
*** 1358,1396 **** } /** Returns the minimum valid X coordinate of the Raster. * @return the minimum x coordinate of this <code>Raster</code>. */ ! final public int getMinX() { return minX; } /** Returns the minimum valid Y coordinate of the Raster. * @return the minimum y coordinate of this <code>Raster</code>. */ ! final public int getMinY() { return minY; } /** Returns the width in pixels of the Raster. * @return the width of this <code>Raster</code>. */ ! final public int getWidth() { return width; } /** Returns the height in pixels of the Raster. * @return the height of this <code>Raster</code>. */ ! final public int getHeight() { return height; } /** Returns the number of bands (samples per pixel) in this Raster. * @return the number of bands of this <code>Raster</code>. */ ! final public int getNumBands() { return numBands; } /** * Returns the number of data elements needed to transfer one pixel --- 1358,1396 ---- } /** Returns the minimum valid X coordinate of the Raster. * @return the minimum x coordinate of this <code>Raster</code>. */ ! public final int getMinX() { return minX; } /** Returns the minimum valid Y coordinate of the Raster. * @return the minimum y coordinate of this <code>Raster</code>. */ ! public final int getMinY() { return minY; } /** Returns the width in pixels of the Raster. * @return the width of this <code>Raster</code>. */ ! public final int getWidth() { return width; } /** Returns the height in pixels of the Raster. * @return the height of this <code>Raster</code>. */ ! public final int getHeight() { return height; } /** Returns the number of bands (samples per pixel) in this Raster. * @return the number of bands of this <code>Raster</code>. */ ! public final int getNumBands() { return numBands; } /** * Returns the number of data elements needed to transfer one pixel
*** 1401,1411 **** * as an array of getNumDataElements() elements of a primitive type given * by getTransferType(). The TransferType may or may not be the same * as the storage data type of the DataBuffer. * @return the number of data elements. */ ! final public int getNumDataElements() { return sampleModel.getNumDataElements(); } /** * Returns the TransferType used to transfer pixels via the --- 1401,1411 ---- * as an array of getNumDataElements() elements of a primitive type given * by getTransferType(). The TransferType may or may not be the same * as the storage data type of the DataBuffer. * @return the number of data elements. */ ! public final int getNumDataElements() { return sampleModel.getNumDataElements(); } /** * Returns the TransferType used to transfer pixels via the
*** 1417,1427 **** * by getTransferType(). The TransferType may or may not be the same * as the storage data type of the DataBuffer. The TransferType will * be one of the types defined in DataBuffer. * @return this transfer type. */ ! final public int getTransferType() { return sampleModel.getTransferType(); } /** Returns the DataBuffer associated with this Raster. * @return the <code>DataBuffer</code> of this <code>Raster</code>. --- 1417,1427 ---- * by getTransferType(). The TransferType may or may not be the same * as the storage data type of the DataBuffer. The TransferType will * be one of the types defined in DataBuffer. * @return this transfer type. */ ! public final int getTransferType() { return sampleModel.getTransferType(); } /** Returns the DataBuffer associated with this Raster. * @return the <code>DataBuffer</code> of this <code>Raster</code>.