jdk/src/share/classes/sun/awt/image/ByteComponentRaster.java
changeset 22584 eed64ee05369
parent 18246 5d1d50a81438
child 25090 83a78ff886e6
equal deleted inserted replaced
22583:e7d5af0b11e9 22584:eed64ee05369
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   205      * Returns a copy of the data offsets array. For each band the data offset
   205      * Returns a copy of the data offsets array. For each band the data offset
   206      * is the index into the band's data array, of the first sample of the
   206      * is the index into the band's data array, of the first sample of the
   207      * band.
   207      * band.
   208      */
   208      */
   209     public int[] getDataOffsets() {
   209     public int[] getDataOffsets() {
   210         return (int[]) dataOffsets.clone();
   210         return dataOffsets.clone();
   211     }
   211     }
   212 
   212 
   213     /**
   213     /**
   214      * Returns the data offset for the specified band.  The data offset
   214      * Returns the data offset for the specified band.  The data offset
   215      * is the index into the data array
   215      * is the index into the data array