APIdia Launch Partner
Top Fields Constructors Methods
sun.java2d.pipe

public Class LoopPipe

extends Object
implements PixelDrawPipe, PixelFillPipe, ParallelogramPipe, ShapeDrawPipe, LoopBasedPipe
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.LoopBasedPipe, sun.java2d.pipe.ShapeDrawPipe, sun.java2d.pipe.ParallelogramPipe, sun.java2d.pipe.PixelFillPipe, sun.java2d.pipe.PixelDrawPipe
Imports
java.awt.Shape, .BasicStroke, java.awt.geom.AffineTransform, .PathIterator, .RoundRectangle2D, .Ellipse2D, .Arc2D, .Path2D, sun.java2d.SunGraphics2D, .SurfaceData, sun.java2d.loops.FillParallelogram, .DrawParallelogram, sun.awt.SunHints

Field Summary

Modifier and TypeField and Description
pack-priv static final RenderingEngine

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)

Implements sun.java2d.pipe.PixelDrawPipe.drawArc.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawLine.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawOval.

public void
drawParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Implements sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawPolygon.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawPolyline.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawRect.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawRoundRect.

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

Implements sun.java2d.pipe.PixelFillPipe.fillArc.

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

Implements sun.java2d.pipe.PixelFillPipe.fillOval.

public void
fillParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)

Implements sun.java2d.pipe.ParallelogramPipe.fillParallelogram.

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

Implements sun.java2d.pipe.PixelFillPipe.fillPolygon.

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

Implements sun.java2d.pipe.PixelFillPipe.fillRect.

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

Implements sun.java2d.pipe.PixelFillPipe.fillRoundRect.

private static void
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.

public static ShapeSpanIterator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

RenderEngineback to summary
pack-priv static final RenderingEngine RenderEngine

Constructor Detail

LoopPipeback to summary
public LoopPipe()

Method Detail

drawback to summary
public void draw(SunGraphics2D sg2d, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.draw.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawArc.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawLine.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawOval.

drawParallelogramback to summary
public void drawParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2, double lw1, double lw2)

Implements sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Doc from sun.java2d.pipe.ParallelogramPipe.drawParallelogram.

Draw a Parallelogram with the indicated line widths assuming a standard BasicStroke with MITER joins. lw1 specifies the width of the stroke along the dx1,dy1 vector and lw2 specifies the width of the stroke along the dx2,dy2 vector. This is equivalent to outsetting the indicated parallelogram by lw/2 pixels, then insetting the same parallelogram by lw/2 pixels and filling the difference between the outer and inner parallelograms.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawPolygon.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawPolyline.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawRect.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawRoundRect.

fillback to summary
public void fill(SunGraphics2D sg2d, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.fill.

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

Implements sun.java2d.pipe.PixelFillPipe.fillArc.

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

Implements sun.java2d.pipe.PixelFillPipe.fillOval.

fillParallelogramback to summary
public void fillParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double x, double y, double dx1, double dy1, double dx2, double dy2)

Implements sun.java2d.pipe.ParallelogramPipe.fillParallelogram.

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

Implements sun.java2d.pipe.PixelFillPipe.fillPolygon.

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

Implements sun.java2d.pipe.PixelFillPipe.fillRect.

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

Implements sun.java2d.pipe.PixelFillPipe.fillRoundRect.

fillSpansback to summary
private static void fillSpans(SunGraphics2D sg2d, SpanIterator si)
getFillSSIback to summary
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();
    }
getStrokeSpansback to summary
public static ShapeSpanIterator getStrokeSpans(SunGraphics2D sg2d, Shape s)