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

public Class DrawLine

extends GraphicsPrimitive
Class Inheritance
Known Direct Subclasses
sun.java2d.loops.DrawLine.TraceDrawLine, sun.java2d.loops.SetDrawLineANY, sun.java2d.loops.XorDrawLineANY
Imports
sun.java2d.SunGraphics2D, .SurfaceData

DrawLine 1) draw solid color single width line 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
DrawLine(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

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

Method Summary

Modifier and TypeMethod and Description
public native void
DrawLine(SunGraphics2D sg2d, SurfaceData dest, int x1, int y1, int x2, int y2)

All DrawLine implementors must have this invoker method

public static DrawLine
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

DrawLineback to summary
protected DrawLine(SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)
DrawLineback to summary
public DrawLine(long pNativePrim, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Method Detail

DrawLineback to summary
public native void DrawLine(SunGraphics2D sg2d, SurfaceData dest, int x1, int y1, int x2, int y2)

All DrawLine implementors must have this invoker method

locateback to summary
public static DrawLine 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 DrawLine.TraceDrawLine

extends DrawLine
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
DrawLine(SunGraphics2D sg2d, SurfaceData dest, int x1, int y1, int x2, int y2)

Overrides sun.java2d.loops.DrawLine.DrawLine.

All DrawLine implementors must have this invoker method

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

Field Detail

targetback to summary
pack-priv DrawLine target

Constructor Detail

TraceDrawLineback to summary
public TraceDrawLine(DrawLine target)

Method Detail

DrawLineback to summary
public void DrawLine(SunGraphics2D sg2d, SurfaceData dest, int x1, int y1, int x2, int y2)

Overrides sun.java2d.loops.DrawLine.DrawLine.

Doc from sun.java2d.loops.DrawLine.DrawLine.

All DrawLine implementors must have this invoker method

traceWrapback to summary
public GraphicsPrimitive traceWrap()

Overrides sun.java2d.loops.DrawLine.traceWrap.