APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt.image

public Class BufImgSurfaceData

extends SurfaceData
Class Inheritance
Imports
java.awt.Rectangle, .GraphicsConfiguration, java.awt.image.ColorModel, .SampleModel, .DirectColorModel, .IndexColorModel, .Raster, .BufferedImage, .DataBuffer, sun.java2d.SurfaceData, .SunGraphics2D, sun.java2d.loops.SurfaceType, .CompositeType, .RenderLoops

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
pack-priv BufferedImage
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private BufferedImageGraphicsConfig
private static RenderLoops[]
private final double
private final double
pack-priv RenderLoops
private static SurfaceType[]
Inherited from sun.java2d.SurfaceData:
AAClipColorShapeAAClipColorViaShapeAAClipCompShapeAAClipCompViaShapeAAClipPaintShapeAAClipPaintViaShapeAAColorShapeAAColorViaPgramAAColorViaShapeAACompShapeAACompViaShapeAAPaintShapeAAPaintViaShapeaaTextRendererclipColorPipeclipColorTextclipCompPipeclipCompTextclipPaintPipeclipPaintTextcolorPipecolorPrimitivescolorTextcolorViaPgramcolorViaShapecompPipecompShapecompTextcompViaShapeimagepipelcdTextRendereroutlineTextRendererpaintPipepaintShapepaintTextpaintViaShapesolidTextRenderer

Constructor Summary

AccessConstructor and Description
public
BufImgSurfaceData(DataBuffer db, BufferedImage bufImg, SurfaceType sType, double scaleX, double scaleY)

protected

Method Summary

Modifier and TypeMethod and Description
public static SurfaceData
public static SurfaceData
createData(BufferedImage bufImg, double scaleX, double scaleY)

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

public static SurfaceData
createDataBP(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY)

public static SurfaceData
createDataIC(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY)

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

public Rectangle
getBounds()

Implements abstract sun.java2d.SurfaceData.getBounds.

Returns the bounds of the destination surface.

public double
getDefaultScaleX()

Overrides sun.java2d.SurfaceData.getDefaultScaleX.

Returns default horizontal scale factor of the destination surface.

public double
getDefaultScaleY()

Overrides sun.java2d.SurfaceData.getDefaultScaleY.

Returns default vertical scale factor of the destination surface.

public Object
getDestination()

Implements abstract sun.java2d.SurfaceData.getDestination.

Returns destination Image associated with this SurfaceData.

public synchronized GraphicsConfiguration
getDeviceConfiguration()

Implements abstract sun.java2d.SurfaceData.getDeviceConfiguration.

Return the GraphicsConfiguration object that describes this destination surface.

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

Implements abstract sun.java2d.SurfaceData.getRaster.

Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface.

public RenderLoops
getRenderLoops(SunGraphics2D sg2d)

Overrides sun.java2d.SurfaceData.getRenderLoops.

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()

Implements abstract sun.java2d.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.

public static synchronized RenderLoops
private static native void
initIDs(Class<?> ICM, Class<?> ICMColorData)

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

Initializes the native Ops pointer.

public void
Inherited from sun.java2d.SurfaceData:
canRenderLCDTextcanRenderParallelogramsconvertTocopyAreaflushgetColorModelgetDisposerReferentgetMaskFillgetNativeOpsgetPrimarySurfaceDatagetSourceSurfaceDatagetStategetStateTrackergetSurfaceTypegetTransparencyinvalidateisNullisOpaqueGrayisSurfaceLostisValidmakeProxyFormakeRenderLoopsmarkDirtypixelForpixelForrestoreContentsrgbForsetBlitProxyCachesetSurfaceLostuseTightBBoxesvalidatePipe

Field Detail

bufImgback to summary
pack-priv BufferedImage bufImg
CACHE_SIZEback to summary
private static final int CACHE_SIZE
DCM_4444_ALPHA_MASKback to summary
private static final int DCM_4444_ALPHA_MASK
DCM_4444_BLUE_MASKback to summary
private static final int DCM_4444_BLUE_MASK
DCM_4444_GREEN_MASKback to summary
private static final int DCM_4444_GREEN_MASK
DCM_4444_RED_MASKback to summary
private static final int DCM_4444_RED_MASK
DCM_555X_BLUE_MASKback to summary
private static final int DCM_555X_BLUE_MASK
DCM_555X_GREEN_MASKback to summary
private static final int DCM_555X_GREEN_MASK
DCM_555X_RED_MASKback to summary
private static final int DCM_555X_RED_MASK
DCM_ARGBBM_ALPHA_MASKback to summary
private static final int DCM_ARGBBM_ALPHA_MASK
DCM_ARGBBM_BLUE_MASKback to summary
private static final int DCM_ARGBBM_BLUE_MASK
DCM_ARGBBM_GREEN_MASKback to summary
private static final int DCM_ARGBBM_GREEN_MASK
DCM_ARGBBM_RED_MASKback to summary
private static final int DCM_ARGBBM_RED_MASK
DCM_RGBX_BLUE_MASKback to summary
private static final int DCM_RGBX_BLUE_MASK
DCM_RGBX_GREEN_MASKback to summary
private static final int DCM_RGBX_GREEN_MASK
DCM_RGBX_RED_MASKback to summary
private static final int DCM_RGBX_RED_MASK
graphicsConfigback to summary
private BufferedImageGraphicsConfig graphicsConfig
loopcacheback to summary
private static RenderLoops[] loopcache

Hides sun.java2d.SurfaceData.loopcache.

scaleXback to summary
private final double scaleX
scaleYback to summary
private final double scaleY
solidloopsback to summary
pack-priv RenderLoops solidloops
typecacheback to summary
private static SurfaceType[] typecache

Constructor Detail

BufImgSurfaceDataback to summary
public BufImgSurfaceData(DataBuffer db, BufferedImage bufImg, SurfaceType sType, double scaleX, double scaleY)
BufImgSurfaceDataback to summary
protected BufImgSurfaceData(SurfaceType surfaceType, ColorModel cm)

Method Detail

createDataback to summary
public static SurfaceData createData(BufferedImage bufImg)
createDataback to summary
public static SurfaceData createData(BufferedImage bufImg, double scaleX, double scaleY)
createDataback to summary
public static SurfaceData createData(Raster ras, ColorModel cm)
createDataBCback to summary
public static SurfaceData createDataBC(BufferedImage bImg, SurfaceType sType, int primaryBank, double scaleX, double scaleY)
createDataBPback to summary
public static SurfaceData createDataBP(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY)
createDataICback to summary
public static SurfaceData createDataIC(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY)
createDataSCback to summary
public static SurfaceData createDataSC(BufferedImage bImg, SurfaceType sType, IndexColorModel icm, double scaleX, double scaleY)
getBoundsback to summary
public Rectangle getBounds()

Implements abstract sun.java2d.SurfaceData.getBounds.

Doc from sun.java2d.SurfaceData.getBounds.

Returns the bounds of the destination surface.

getDefaultScaleXback to summary
public double getDefaultScaleX()

Overrides sun.java2d.SurfaceData.getDefaultScaleX.

Doc from sun.java2d.SurfaceData.getDefaultScaleX.

Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.

Annotations
@Override
getDefaultScaleYback to summary
public double getDefaultScaleY()

Overrides sun.java2d.SurfaceData.getDefaultScaleY.

Doc from sun.java2d.SurfaceData.getDefaultScaleY.

Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.

Annotations
@Override
getDestinationback to summary
public Object getDestination()

Implements abstract sun.java2d.SurfaceData.getDestination.

Returns destination Image associated with this SurfaceData.

getDeviceConfigurationback to summary
public synchronized GraphicsConfiguration getDeviceConfiguration()

Implements abstract sun.java2d.SurfaceData.getDeviceConfiguration.

Doc from sun.java2d.SurfaceData.getDeviceConfiguration.

Return the GraphicsConfiguration object that describes this destination surface.

getRasterback to summary
public Raster getRaster(int x, int y, int w, int h)

Implements abstract sun.java2d.SurfaceData.getRaster.

Doc from sun.java2d.SurfaceData.getRaster.

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.

getRenderLoopsback to summary
public RenderLoops getRenderLoops(SunGraphics2D sg2d)

Overrides sun.java2d.SurfaceData.getRenderLoops.

Doc from sun.java2d.SurfaceData.getRenderLoops.

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.

getReplacementback to summary
public SurfaceData getReplacement()

Implements abstract sun.java2d.SurfaceData.getReplacement.

Doc from sun.java2d.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.

getSolidLoopsback to summary
public static synchronized RenderLoops getSolidLoops(SurfaceType type)
initIDsback to summary
private static native void initIDs(Class<?> ICM, Class<?> ICMColorData)
initRasterback to summary
protected native void initRaster(Object theArray, int offset, int bitoffset, int width, int height, int pixStr, int scanStr, IndexColorModel icm)

Initializes the native Ops pointer.

initSolidLoopsback to summary
public void initSolidLoops()
sun.awt.image back to summary

public final Class BufImgSurfaceData.ICMColorData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
private
ICMColorData(long pData)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pDataback to summary
private long pData

Constructor Detail

ICMColorDataback to summary
private ICMColorData(long pData)