| java.lang.Object sun.java2d.pipe.BufferedRenderPipe
All known Subclasses: sun.java2d.opengl.OGLRenderer,
BufferedRenderPipe | abstract public class BufferedRenderPipe implements PixelDrawPipe,PixelFillPipe,ShapeDrawPipe(Code) | | 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.
|
Method Summary | |
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) | protected void | drawPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy) | protected void | drawPoly(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints, boolean isClosed) | abstract protected void | drawPoly(int[] xPoints, int[] yPoints, int nPoints, boolean isClosed, int transX, int transY) | 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) | protected void | fillPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy) | 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 void | fillSpans(SunGraphics2D sg2d, SpanIterator si, int transx, int transy) | abstract protected void | validateContext(SunGraphics2D sg2d) Validates the state in the provided SunGraphics2D object and sets up
any special resources for this operation (e.g. |
BYTES_PER_POLY_POINT | final static int BYTES_PER_POLY_POINT(Code) | | |
BYTES_PER_SCANLINE | final static int BYTES_PER_SCANLINE(Code) | | |
BYTES_PER_SPAN | final static int BYTES_PER_SPAN(Code) | | |
drawArc | public void drawArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)(Code) | | |
drawPoly | protected void drawPoly(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints, boolean isClosed)(Code) | | |
drawPoly | abstract protected void drawPoly(int[] xPoints, int[] yPoints, int nPoints, boolean isClosed, int transX, int transY)(Code) | | |
drawPolygon | public void drawPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)(Code) | | |
drawPolyline | public void drawPolyline(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)(Code) | | |
drawRoundRect | public void drawRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
fillArc | public void fillArc(SunGraphics2D sg2d, int x, int y, int width, int height, int startAngle, int arcAngle)(Code) | | |
fillPolygon | public void fillPolygon(SunGraphics2D sg2d, int[] xPoints, int[] yPoints, int nPoints)(Code) | | |
fillRoundRect | public void fillRoundRect(SunGraphics2D sg2d, int x, int y, int width, int height, int arcWidth, int arcHeight)(Code) | | |
validateContext | abstract protected void validateContext(SunGraphics2D sg2d)(Code) | | Validates the state in the provided SunGraphics2D object and sets up
any special resources for this operation (e.g. enabling gradient
shading).
|
|
|