APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.java2d.loops

public Class MaskBlit

extends GraphicsPrimitive
Class Inheritance
Known Direct Subclasses
sun.java2d.loops.MaskBlit.General, sun.java2d.loops.MaskBlit.TraceMaskBlit, sun.java2d.pipe.BufferedMaskBlit, sun.java2d.xr.XRMaskBlit
Imports
java.awt.Composite, java.lang.ref.WeakReference, sun.java2d.SurfaceData, sun.java2d.pipe.Region, sun.java2d.loops.GraphicsPrimitiveMgr.GeneralPrimitives

MaskBlit 1) copies rectangle of pixels from one surface to another 2) performs compositing of colors based upon a Composite parameter 3) blends result of composite with destination using an alpha coverage mask 4) the mask may be null in which case it should be treated as if it were an array of all opaque values (0xff) precise behavior is undefined if the source surface and the destination surface are the same surface with overlapping regions of pixels

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static RenderCache
public static final String
public static final int
Inherited from sun.java2d.loops.GraphicsPrimitive:
TRACECOUNTStracefiletraceflagsTRACELOGtraceMaptraceoutTRACETIMESTAMP

Constructor Summary

AccessConstructor and Description
protected
MaskBlit(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

public
MaskBlit(long pNativePrim, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Summary

Modifier and TypeMethod and Description
public static MaskBlit
public static MaskBlit
locate(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

protected GraphicsPrimitive
makePrimitive(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Overrides sun.java2d.loops.GraphicsPrimitive.makePrimitive.

Produces specific primitive loop if the current object is registered as a general loop, otherwise the InternalError is thrown.

public native void
MaskBlit(SurfaceData src, SurfaceData dst, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int maskoff, int maskscan)

All MaskBlit implementors must have this invoker method

public GraphicsPrimitive
Inherited from sun.java2d.loops.GraphicsPrimitive:
convertFromconvertFromconvertTocreateConvertergetCompositeTypegetDestTypegetGeneralOpgetNativePrimgetPrimTypeIDgetSignaturegetSourceTypegetUniqueIDmakePrimTypeIDmakeUniqueIDsatisfiessatisfiesSameAssetupGeneralBinaryOpsetupGeneralUnaryOpsimplenamesimplenamesimplenametoStringtracePrimitivetracingEnabled

Field Detail

blitcacheback to summary
private static RenderCache blitcache
methodSignatureback to summary
public static final String methodSignature

Hides sun.java2d.loops.GraphicsPrimitive.methodSignature.

primTypeIDback to summary
public static final int primTypeID

Constructor Detail

MaskBlitback to summary
protected MaskBlit(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
MaskBlitback to summary
public MaskBlit(long pNativePrim, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Detail

getFromCacheback to summary
public static MaskBlit getFromCache(SurfaceType src, CompositeType comp, SurfaceType dst)
locateback to summary
public static MaskBlit locate(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
makePrimitiveback to summary
protected GraphicsPrimitive makePrimitive(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Overrides sun.java2d.loops.GraphicsPrimitive.makePrimitive.

Doc from sun.java2d.loops.GraphicsPrimitive.makePrimitive.

Produces specific primitive loop if the current object is registered as a general loop, otherwise the InternalError is thrown.

MaskBlitback to summary
public native void MaskBlit(SurfaceData src, SurfaceData dst, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int maskoff, int maskscan)

All MaskBlit implementors must have this invoker method

traceWrapback to summary
public GraphicsPrimitive traceWrap()

Implements abstract sun.java2d.loops.GraphicsPrimitive.traceWrap.

sun.java2d.loops back to summary

private Class MaskBlit.General

extends MaskBlit
implements GeneralBinaryOp
Class Inheritance
All Implemented Interfaces
sun.java2d.loops.GraphicsPrimitive.GeneralBinaryOp

Field Summary

Modifier and TypeField and Description
pack-priv Blit
pack-priv Blit
pack-priv Blit
pack-priv WeakReference<SurfaceData>
pack-priv MaskBlit
pack-priv WeakReference<SurfaceData>
Inherited from sun.java2d.loops.MaskBlit:
methodSignatureprimTypeID

Constructor Summary

AccessConstructor and Description
public
General(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Summary

Modifier and TypeMethod and Description
public synchronized void
MaskBlit(SurfaceData srcData, SurfaceData dstData, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int offset, int scan)

Overrides sun.java2d.loops.MaskBlit.MaskBlit.

All MaskBlit implementors must have this invoker method

public void
setPrimitives(Blit srcconverter, Blit dstconverter, GraphicsPrimitive genericop, Blit resconverter)

Implements sun.java2d.loops.GraphicsPrimitive.GeneralBinaryOp.setPrimitives.

This method allows the setupGeneralBinaryOp method to set the converters into the General version of the Primitive.

Inherited from sun.java2d.loops.MaskBlit:
getFromCachelocatemakePrimitivetraceWrap

Field Detail

convertdstback to summary
pack-priv Blit convertdst
convertresultback to summary
pack-priv Blit convertresult
convertsrcback to summary
pack-priv Blit convertsrc
dstTmpback to summary
pack-priv WeakReference<SurfaceData> dstTmp
performopback to summary
pack-priv MaskBlit performop
srcTmpback to summary
pack-priv WeakReference<SurfaceData> srcTmp

Constructor Detail

Generalback to summary
public General(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Detail

MaskBlitback to summary
public synchronized void MaskBlit(SurfaceData srcData, SurfaceData dstData, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int offset, int scan)

Overrides sun.java2d.loops.MaskBlit.MaskBlit.

Doc from sun.java2d.loops.MaskBlit.MaskBlit.

All MaskBlit implementors must have this invoker method

setPrimitivesback to summary
public void setPrimitives(Blit srcconverter, Blit dstconverter, GraphicsPrimitive genericop, Blit resconverter)

Implements sun.java2d.loops.GraphicsPrimitive.GeneralBinaryOp.setPrimitives.

Doc from sun.java2d.loops.GraphicsPrimitive.GeneralBinaryOp.setPrimitives.

This method allows the setupGeneralBinaryOp method to set the converters into the General version of the Primitive.

sun.java2d.loops back to summary

private Class MaskBlit.TraceMaskBlit

extends MaskBlit
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv MaskBlit
Inherited from sun.java2d.loops.MaskBlit:
methodSignatureprimTypeID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
MaskBlit(SurfaceData src, SurfaceData dst, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int maskoff, int maskscan)

Overrides sun.java2d.loops.MaskBlit.MaskBlit.

All MaskBlit implementors must have this invoker method

public GraphicsPrimitive
Inherited from sun.java2d.loops.MaskBlit:
getFromCachelocatemakePrimitive

Field Detail

targetback to summary
pack-priv MaskBlit target

Constructor Detail

TraceMaskBlitback to summary
public TraceMaskBlit(MaskBlit target)

Method Detail

MaskBlitback to summary
public void MaskBlit(SurfaceData src, SurfaceData dst, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int maskoff, int maskscan)

Overrides sun.java2d.loops.MaskBlit.MaskBlit.

Doc from sun.java2d.loops.MaskBlit.MaskBlit.

All MaskBlit implementors must have this invoker method

traceWrapback to summary
public GraphicsPrimitive traceWrap()

Overrides sun.java2d.loops.MaskBlit.traceWrap.