public class

BufImgSurfaceData

extends SurfaceData
java.lang.Object
   ↳ sun.java2d.SurfaceData
     ↳ sun.awt.image.BufImgSurfaceData

Summary

Nested Classes
class BufImgSurfaceData.ICMColorData  
[Expand]
Inherited Constants
From interface java.awt.Transparency
[Expand]
Inherited Fields
From class sun.java2d.SurfaceData
Public Constructors
BufImgSurfaceData(DataBuffer db, BufferedImage bufImg, SurfaceType sType)
Public Methods
static SurfaceData createData(Raster ras, ColorModel cm)
static SurfaceData createData(BufferedImage bufImg)
static SurfaceData createDataBC(BufferedImage bImg, SurfaceType sType, int primaryBank)
static SurfaceData createDataBP(BufferedImage bImg, SurfaceType sType)
static SurfaceData createDataIC(BufferedImage bImg, SurfaceType sType)
static SurfaceData createDataSC(BufferedImage bImg, SurfaceType sType, IndexColorModel icm)
Rectangle getBounds()
Returns the bounds of the destination surface.
Object getDestination()
Returns destination Image associated with this SurfaceData.
synchronized GraphicsConfiguration getDeviceConfiguration()
Return the GraphicsConfiguration object that describes this destination surface.
Raster getRaster(int x, int y, int w, int h)
Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface.
RenderLoops getRenderLoops(SunGraphics2D sg2d)
Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D.
SurfaceData getReplacement()
Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones.
synchronized static RenderLoops getSolidLoops(SurfaceType type)
void initSolidLoops()
Protected Methods
void checkCustomComposite()
Performs Security Permissions checks to see if a Custom Composite object should be allowed access to the pixels of this surface.
void initRaster(Object theArray, int offset, int bitoffset, int width, int height, int pixStr, int scanStr, IndexColorModel icm)
Initializes the native Ops pointer.
[Expand]
Inherited Methods
From class sun.java2d.SurfaceData
From class java.lang.Object
From interface java.awt.Transparency
From interface sun.java2d.DisposerTarget
From interface sun.java2d.StateTrackable

Public Constructors

public BufImgSurfaceData (DataBuffer db, BufferedImage bufImg, SurfaceType sType)

Public Methods

public static SurfaceData createData (Raster ras, ColorModel cm)

public static SurfaceData createData (BufferedImage bufImg)

public static SurfaceData createDataBC (BufferedImage bImg, SurfaceType sType, int primaryBank)

public static SurfaceData createDataBP (BufferedImage bImg, SurfaceType sType)

public static SurfaceData createDataIC (BufferedImage bImg, SurfaceType sType)

public static SurfaceData createDataSC (BufferedImage bImg, SurfaceType sType, IndexColorModel icm)

public Rectangle getBounds ()

Returns the bounds of the destination surface.

public Object getDestination ()

Returns destination Image associated with this SurfaceData.

public synchronized GraphicsConfiguration getDeviceConfiguration ()

Return the GraphicsConfiguration object that describes this destination surface.

public Raster getRaster (int x, int y, int w, int h)

Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface. The coordinate origin of the returned Raster is the same as the device space origin of the destination surface. In some cases the returned Raster might also be writeable. In most cases, the returned Raster might contain more pixels than requested.

public RenderLoops getRenderLoops (SunGraphics2D sg2d)

Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D.

public SurfaceData getReplacement ()

Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement.

public static synchronized RenderLoops getSolidLoops (SurfaceType type)

public void initSolidLoops ()

Protected Methods

protected void checkCustomComposite ()

Performs Security Permissions checks to see if a Custom Composite object should be allowed access to the pixels of this surface.

protected void initRaster (Object theArray, int offset, int bitoffset, int width, int height, int pixStr, int scanStr, IndexColorModel icm)

Initializes the native Ops pointer.