public abstract class

BufferedRenderPipe

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

Class Overview

Base class for enqueuing rendering operations in a single-threaded rendering environment. Instead of each operation being rendered immediately by the underlying graphics library, the operation will be added to the provided RenderQueue, which will be processed at a later time by a single thread. This class provides implementations of drawLine(), drawRect(), drawPoly(), fillRect(), draw(Shape), and fill(Shape), which are useful for a hardware-accelerated renderer. The other draw*() and fill*() methods simply delegate to draw(Shape) and fill(Shape), respectively.

Summary

Fields
protected RenderBuffer buf
protected RenderQueue rq
Public Constructors
BufferedRenderPipe(RenderQueue rq)
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)
Protected Methods
void drawPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)
abstract void drawPoly(int[] xPoints, int[] yPoints, int nPoints, boolean isClosed, int transX, int transY)
void drawPoly(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints, boolean isClosed)
void fillPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)
void fillSpans(SunGraphics2D sg2d, SpanIterator si, int transx, int transy)
abstract void validateContext(SunGraphics2D sg2d)
Validates the state in the provided SunGraphics2D object and sets up any special resources for this operation (e.g.
[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

Fields

protected RenderBuffer buf

protected RenderQueue rq

Public Constructors

public BufferedRenderPipe (RenderQueue rq)

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)

Protected Methods

protected void drawPath (SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)

protected abstract void drawPoly (int[] xPoints, int[] yPoints, int nPoints, boolean isClosed, int transX, int transY)

protected void drawPoly (SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints, boolean isClosed)

protected void fillPath (SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)

protected void fillSpans (SunGraphics2D sg2d, SpanIterator si, int transx, int transy)

protected abstract void validateContext (SunGraphics2D sg2d)

Validates the state in the provided SunGraphics2D object and sets up any special resources for this operation (e.g. enabling gradient shading).