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

public final Class XRRenderer

extends Object
implements PixelDrawPipe, PixelFillPipe, ShapeDrawPipe
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.ShapeDrawPipe, sun.java2d.pipe.PixelFillPipe, sun.java2d.pipe.PixelDrawPipe
Imports
java.awt.*, java.awt.geom.*, sun.awt.SunToolkit, sun.java2d.SunGraphics2D, .SurfaceData, sun.java2d.loops.*, sun.java2d.pipe.Region, .PixelDrawPipe, .PixelFillPipe, .ShapeDrawPipe, .SpanIterator, .ShapeSpanIterator, .LoopPipe

XRender provides only accelerated rectangles. To emulate higher "order" geometry we have to pass everything else to DoPath/FillSpans.

Todo

DrawRect could be instrified

Author
Clemens Eisserer

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
pack-priv XRRenderer.XRDrawHandler
pack-priv XRDrawLine
pack-priv GrowableRectArray
pack-priv MaskTileManager

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.

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

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.

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

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.

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

private void
validateSurface(SunGraphics2D sg2d)

Common validate method, used by all XRRender functions to validate the destination context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

drawHandlerback to summary
pack-priv XRRenderer.XRDrawHandler drawHandler
lineGenback to summary
pack-priv XRDrawLine lineGen
rectBufferback to summary
pack-priv GrowableRectArray rectBuffer
tileManagerback to summary
pack-priv MaskTileManager tileManager

Constructor Detail

XRRendererback to summary
public XRRenderer(MaskTileManager tileManager)

Method Detail

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

Implements sun.java2d.pipe.ShapeDrawPipe.draw.

Annotations
@Override
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.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawLine.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawOval.

Annotations
@Override
drawPathback to summary
protected void drawPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)
drawPolygonback to summary
public void drawPolygon(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolygon.

Annotations
@Override
drawPolylineback to summary
public void drawPolyline(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolyline.

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

Implements sun.java2d.pipe.PixelDrawPipe.drawRect.

Annotations
@Override
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.

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

Implements sun.java2d.pipe.ShapeDrawPipe.fill.

Annotations
@Override
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.

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

Implements sun.java2d.pipe.PixelFillPipe.fillOval.

Annotations
@Override
fillPathback to summary
protected void fillPath(SunGraphics2D sg2d, Path2D.Float p2df, int transx, int transy)
fillPolygonback to summary
public void fillPolygon(SunGraphics2D sg2d, int[] xpoints, int[] ypoints, int npoints)

Implements sun.java2d.pipe.PixelFillPipe.fillPolygon.

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

Implements sun.java2d.pipe.PixelFillPipe.fillRect.

Annotations
@Override
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.

Annotations
@Override
fillSpansback to summary
protected void fillSpans(SunGraphics2D sg2d, SpanIterator si, int transx, int transy)
validateSurfaceback to summary
private void validateSurface(SunGraphics2D sg2d)

Common validate method, used by all XRRender functions to validate the destination context.

sun.java2d.xr back to summary

private final Class XRRenderer.XRDrawHandler

extends DrawHandler
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv DirtyRegion
Inherited from sun.java2d.loops.ProcessPath.DrawHandler:
strokeControlxMaxxMaxfxMinxMinfyMaxyMaxfyMinyMinf

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
drawLine(int x1, int y1, int x2, int y2)

Implements abstract sun.java2d.loops.ProcessPath.DrawHandler.drawLine.

public void
public void
drawScanline(int x1, int x2, int y)

Implements abstract sun.java2d.loops.ProcessPath.DrawHandler.drawScanline.

pack-priv void
validate(SunGraphics2D sg2d)

This method needs to be called prior to each draw/fillPath() operation to ensure the clip bounds are up to date.

Inherited from sun.java2d.loops.ProcessPath.DrawHandler:
adjustBoundssetBoundssetBounds

Field Detail

regionback to summary
pack-priv DirtyRegion region

Constructor Detail

XRDrawHandlerback to summary
pack-priv XRDrawHandler()

Method Detail

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

Implements abstract sun.java2d.loops.ProcessPath.DrawHandler.drawLine.

Annotations
@Override
drawPixelback to summary
public void drawPixel(int x, int y)

Implements abstract sun.java2d.loops.ProcessPath.DrawHandler.drawPixel.

Annotations
@Override
drawScanlineback to summary
public void drawScanline(int x1, int x2, int y)

Implements abstract sun.java2d.loops.ProcessPath.DrawHandler.drawScanline.

Annotations
@Override
validateback to summary
pack-priv void validate(SunGraphics2D sg2d)

This method needs to be called prior to each draw/fillPath() operation to ensure the clip bounds are up to date.