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

public Class MaskFill

extends GraphicsPrimitive
Class Inheritance
Known Direct Subclasses
sun.java2d.loops.MaskFill.General, sun.java2d.loops.MaskFill.TraceMaskFill, sun.java2d.pipe.BufferedMaskFill, sun.java2d.xr.XRMaskFill
Imports
java.awt.Composite, java.awt.image.BufferedImage, sun.awt.image.BufImgSurfaceData, sun.java2d.SunGraphics2D, .SurfaceData, sun.java2d.pipe.Region, sun.java2d.loops.GraphicsPrimitiveMgr.GeneralPrimitives

MaskFill 1) fills rectangles of pixels on a surface 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)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected
MaskFill(String alternateSignature, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

protected
MaskFill(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

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

Method Summary

Modifier and TypeMethod and Description
public boolean
public native void
DrawAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

public native void
FillAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2)

public static MaskFill
public static MaskFill
locate(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

public static MaskFill
locatePrim(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
MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int maskoff, int maskscan)

All MaskFill implementors must have this invoker method

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

Field Detail

drawPgramSignatureback to summary
public static final String drawPgramSignature
fillcacheback to summary
private static RenderCache fillcache
fillPgramSignatureback to summary
public static final String fillPgramSignature
methodSignatureback to summary
public static final String methodSignature

Hides sun.java2d.loops.GraphicsPrimitive.methodSignature.

primTypeIDback to summary
public static final int primTypeID

Constructor Detail

MaskFillback to summary
protected MaskFill(String alternateSignature, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
MaskFillback to summary
protected MaskFill(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
MaskFillback to summary
public MaskFill(long pNativePrim, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Detail

canDoParallelogramsback to summary
public boolean canDoParallelograms()
DrawAAPgramback to summary
public native void DrawAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)
FillAAPgramback to summary
public native void FillAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2)
getFromCacheback to summary
public static MaskFill getFromCache(SurfaceType src, CompositeType comp, SurfaceType dst)
locateback to summary
public static MaskFill locate(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
locatePrimback to summary
public static MaskFill locatePrim(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.

MaskFillback to summary
public native void MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int maskoff, int maskscan)

All MaskFill 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 MaskFill.General

extends MaskFill
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv FillRect
pack-priv MaskBlit
Inherited from sun.java2d.loops.MaskFill:
drawPgramSignaturefillPgramSignaturemethodSignatureprimTypeID

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int offset, int scan)

Overrides sun.java2d.loops.MaskFill.MaskFill.

All MaskFill implementors must have this invoker method

Inherited from sun.java2d.loops.MaskFill:
canDoParallelogramsDrawAAPgramFillAAPgramgetFromCachelocatelocatePrimmakePrimitivetraceWrap

Field Detail

fillopback to summary
pack-priv FillRect fillop
maskopback to summary
pack-priv MaskBlit maskop

Constructor Detail

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

Method Detail

MaskFillback to summary
public void MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int offset, int scan)

Overrides sun.java2d.loops.MaskFill.MaskFill.

Doc from sun.java2d.loops.MaskFill.MaskFill.

All MaskFill implementors must have this invoker method

sun.java2d.loops back to summary

private Class MaskFill.TraceMaskFill

extends MaskFill
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv MaskFill
pack-priv MaskFill
pack-priv MaskFill
Inherited from sun.java2d.loops.MaskFill:
drawPgramSignaturefillPgramSignaturemethodSignatureprimTypeID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
DrawAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Overrides sun.java2d.loops.MaskFill.DrawAAPgram.

public void
FillAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2)

Overrides sun.java2d.loops.MaskFill.FillAAPgram.

public void
MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int maskoff, int maskscan)

Overrides sun.java2d.loops.MaskFill.MaskFill.

All MaskFill implementors must have this invoker method

public GraphicsPrimitive
Inherited from sun.java2d.loops.MaskFill:
getFromCachelocatelocatePrimmakePrimitive

Field Detail

drawPgramTargetback to summary
pack-priv MaskFill drawPgramTarget
fillPgramTargetback to summary
pack-priv MaskFill fillPgramTarget
targetback to summary
pack-priv MaskFill target

Constructor Detail

TraceMaskFillback to summary
public TraceMaskFill(MaskFill target)

Method Detail

canDoParallelogramsback to summary
public boolean canDoParallelograms()

Overrides sun.java2d.loops.MaskFill.canDoParallelograms.

DrawAAPgramback to summary
public void DrawAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Overrides sun.java2d.loops.MaskFill.DrawAAPgram.

FillAAPgramback to summary
public void FillAAPgram(SunGraphics2D sg2d, SurfaceData sData, Composite comp, double x, double y, double dx1, double dy1, double dx2, double dy2)

Overrides sun.java2d.loops.MaskFill.FillAAPgram.

MaskFillback to summary
public void MaskFill(SunGraphics2D sg2d, SurfaceData sData, Composite comp, int x, int y, int w, int h, byte[] mask, int maskoff, int maskscan)

Overrides sun.java2d.loops.MaskFill.MaskFill.

Doc from sun.java2d.loops.MaskFill.MaskFill.

All MaskFill implementors must have this invoker method

traceWrapback to summary
public GraphicsPrimitive traceWrap()

Overrides sun.java2d.loops.MaskFill.traceWrap.