14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package sun.awt.image;
28
29 import java.awt.image.DataBuffer;
30 import sun.java2d.SurfaceData;
31 import java.awt.Rectangle;
32
33 /**
34 * This class extends <CODE>DataBuffer</CODE> and allows access to
35 * native data via the DataBuffer methods. Note that, unlike other
36 * DataBuffer classes, the data is not stored in this class but
37 * has been created and stored elsewhere and this class is used
38 * merely to access that data. Note also that this class subclasses
39 * from DataBuffer and not from any of the standard subclasses
40 * (e.g., DataBufferInt); those subclasses allow the user to
41 * get a pointer to the data and manipulate it directly. That
42 * operation may not be possible or wise with native data.
43 * One important use of this DataBuffer class is in accessing the
44 * data stored in an offscreen vram surface, such as that created
45 * by the createVolatileImage() method.
46 */
47
48 public class DataBufferNative extends DataBuffer
49 {
50 protected SurfaceData surfaceData;
51 protected int width;
52
53 /**
54 * Constructor. The constructor of this object requires a
|
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package sun.awt.image;
28
29 import java.awt.image.DataBuffer;
30 import sun.java2d.SurfaceData;
31 import java.awt.Rectangle;
32
33 /**
34 * This class extends {@code DataBuffer} and allows access to
35 * native data via the DataBuffer methods. Note that, unlike other
36 * DataBuffer classes, the data is not stored in this class but
37 * has been created and stored elsewhere and this class is used
38 * merely to access that data. Note also that this class subclasses
39 * from DataBuffer and not from any of the standard subclasses
40 * (e.g., DataBufferInt); those subclasses allow the user to
41 * get a pointer to the data and manipulate it directly. That
42 * operation may not be possible or wise with native data.
43 * One important use of this DataBuffer class is in accessing the
44 * data stored in an offscreen vram surface, such as that created
45 * by the createVolatileImage() method.
46 */
47
48 public class DataBufferNative extends DataBuffer
49 {
50 protected SurfaceData surfaceData;
51 protected int width;
52
53 /**
54 * Constructor. The constructor of this object requires a
|