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

public Class DrawPolygons

extends GraphicsPrimitive
Class Inheritance
Known Direct Subclasses
sun.java2d.loops.DrawPolygons.TraceDrawPolygons, sun.java2d.loops.SetDrawPolygonsANY, sun.java2d.loops.XorDrawPolygonsANY
Imports
sun.java2d.SunGraphics2D, .SurfaceData

DrawPolygons 1) draw single-width line polygons onto destination surface 2) must accept output area [x, y, dx, dy] from within the surface description data for clip rect

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

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

Constructor Summary

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

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

Method Summary

Modifier and TypeMethod and Description
public native void
DrawPolygons(SunGraphics2D sg2d, SurfaceData sData, int[] xPoints, int[] yPoints, int[] nPoints, int numPolys, int transX, int transY, boolean close)

All DrawPolygon implementors must have this invoker method

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

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

Field Detail

methodSignatureback to summary
public static final String methodSignature

Hides sun.java2d.loops.GraphicsPrimitive.methodSignature.

primTypeIDback to summary
public static final int primTypeID

Constructor Detail

DrawPolygonsback to summary
protected DrawPolygons(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
DrawPolygonsback to summary
public DrawPolygons(long pNativePrim, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Detail

DrawPolygonsback to summary
public native void DrawPolygons(SunGraphics2D sg2d, SurfaceData sData, int[] xPoints, int[] yPoints, int[] nPoints, int numPolys, int transX, int transY, boolean close)

All DrawPolygon implementors must have this invoker method

locateback to summary
public static DrawPolygons locate(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
traceWrapback to summary
public GraphicsPrimitive traceWrap()

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

sun.java2d.loops back to summary

private Class DrawPolygons.TraceDrawPolygons

extends DrawPolygons
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
DrawPolygons(SunGraphics2D sg2d, SurfaceData sData, int[] xPoints, int[] yPoints, int[] nPoints, int numPolys, int transX, int transY, boolean close)

Overrides sun.java2d.loops.DrawPolygons.DrawPolygons.

All DrawPolygon implementors must have this invoker method

public GraphicsPrimitive
Inherited from sun.java2d.loops.DrawPolygons:
locate

Field Detail

targetback to summary
pack-priv DrawPolygons target

Constructor Detail

TraceDrawPolygonsback to summary
public TraceDrawPolygons(DrawPolygons target)

Method Detail

DrawPolygonsback to summary
public void DrawPolygons(SunGraphics2D sg2d, SurfaceData sData, int[] xPoints, int[] yPoints, int[] nPoints, int numPolys, int transX, int transY, boolean close)

Overrides sun.java2d.loops.DrawPolygons.DrawPolygons.

Doc from sun.java2d.loops.DrawPolygons.DrawPolygons.

All DrawPolygon implementors must have this invoker method

traceWrapback to summary
public GraphicsPrimitive traceWrap()

Overrides sun.java2d.loops.DrawPolygons.traceWrap.