public class

LoopPipe

extends Object
implements PixelDrawPipe PixelFillPipe ShapeDrawPipe
java.lang.Object
   ↳ sun.java2d.pipe.LoopPipe

Summary

Public Constructors
LoopPipe()
Public Methods
void draw(SunGraphics2D sg2d, Shape s)
void drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)
void drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2)
void drawOval(SunGraphics2D sg2d, int x, int y, int width, int height)
void drawPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
void drawPolyline(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
void drawRect(SunGraphics2D sg2d, int x, int y, int width, int height)
void drawRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)
void fill(SunGraphics2D sg2d, Shape s)
void fillArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)
void fillOval(SunGraphics2D sg2d, int x, int y, int width, int height)
void fillPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)
void fillRect(SunGraphics2D sg2d, int x, int y, int width, int height)
void fillRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)
static ShapeSpanIterator getFillSSI(SunGraphics2D sg2d)
Return a ShapeSpanIterator instance that normalizes as appropriate for a fill operation as per the settings in the specified SunGraphics2D object.
static ShapeSpanIterator getStrokeSpans(SunGraphics2D sg2d, Shape s)
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.java2d.pipe.PixelDrawPipe
From interface sun.java2d.pipe.PixelFillPipe
From interface sun.java2d.pipe.ShapeDrawPipe

Public Constructors

public LoopPipe ()

Public Methods

public void draw (SunGraphics2D sg2d, Shape s)

public void drawArc (SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)

public void drawLine (SunGraphics2D sg2d, int x1, int y1, int x2, int y2)

public void drawOval (SunGraphics2D sg2d, int x, int y, int width, int height)

public void drawPolygon (SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)

public void drawPolyline (SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)

public void drawRect (SunGraphics2D sg2d, int x, int y, int width, int height)

public void drawRoundRect (SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)

public void fill (SunGraphics2D sg2d, Shape s)

public void fillArc (SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)

public void fillOval (SunGraphics2D sg2d, int x, int y, int width, int height)

public void fillPolygon (SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)

public void fillRect (SunGraphics2D sg2d, int x, int y, int width, int height)

public void fillRoundRect (SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)

public static ShapeSpanIterator getFillSSI (SunGraphics2D sg2d)

Return a ShapeSpanIterator instance that normalizes as appropriate for a fill operation as per the settings in the specified SunGraphics2D object. The ShapeSpanIterator will be newly constructed and ready to start taking in geometry. Note that the caller is responsible for calling dispose() on the returned ShapeSpanIterator inside a try/finally block:

     ShapeSpanIterator ssi = LoopPipe.getFillSSI(sg2d);
     try {
         ssi.setOutputArea(clip);
         ssi.appendPath(...); // or appendPoly
         // iterate the spans from ssi and operate on them
     } finally {
         ssi.dispose();
     }
 

public static ShapeSpanIterator getStrokeSpans (SunGraphics2D sg2d, Shape s)