public class

WritableRasterNative

extends WritableRaster
java.lang.Object
   ↳ java.awt.image.Raster
     ↳ java.awt.image.WritableRaster
       ↳ sun.awt.image.WritableRasterNative

Class Overview

WritableRasterNative This class exists to wrap a native DataBuffer object. The standard WritableRaster object assumes that a DataBuffer of a given type (e.g., DataBuffer.TYPE_INT) implies a certain subclass (e.g., DataBufferInt). But this is not always the case. DataBufferNative, for example, may allow access to integer-based data, but it is not DataBufferInt (which is a final class and cannot be subclassed). So this class exists simply to allow the WritableRaster functionality for this new kind of DataBuffer object.

Summary

[Expand]
Inherited Fields
From class java.awt.image.Raster
Protected Constructors
WritableRasterNative(SampleModel sm, DataBuffer db)
Public Methods
static WritableRasterNative createNativeRaster(ColorModel cm, SurfaceData sd, int width, int height)
static WritableRasterNative createNativeRaster(SampleModel sm, DataBuffer db)
[Expand]
Inherited Methods
From class java.awt.image.WritableRaster
From class java.awt.image.Raster
From class java.lang.Object

Protected Constructors

protected WritableRasterNative (SampleModel sm, DataBuffer db)

Public Methods

public static WritableRasterNative createNativeRaster (ColorModel cm, SurfaceData sd, int width, int height)

public static WritableRasterNative createNativeRaster (SampleModel sm, DataBuffer db)