Top Fields Constructors Methods
sun.java2d.pipe

public abstract Class BufferedTextPipe

extends GlyphListPipe
Class Inheritance
Known Direct Subclasses
sun.java2d.opengl.OGLTextRenderer
Imports
java.awt.AlphaComposite, .Composite, sun.font.GlyphList, sun.java2d.SunGraphics2D, .SurfaceData, java.lang.annotation.Native

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
OFFSET_CONTRAST

The following offsets are used to pack the parameters in createPackedParams().

private static final int
private static final int
private static final int
protected final RenderQueue

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private static int
createPackedParams(SunGraphics2D sg2d, GlyphList gl)

Packs the given parameters into a single int value in order to save space on the rendering queue.

protected void
protected abstract void
drawGlyphList(int numGlyphs, boolean usePositions, boolean subPixPos, boolean rgbOrder, int lcdContrast, float glOrigX, float glOrigY, long[] images, float[] positions)

Called as a separate Runnable when the operation is too large to fit on the RenderQueue.

private void
protected abstract void
validateContext(SunGraphics2D sg2d, Composite comp)

Validates the state in the provided SunGraphics2D object.

Inherited from sun.java2d.pipe.GlyphListPipe:
drawCharsdrawGlyphListdrawGlyphVectordrawString

Field Detail

BYTES_PER_GLYPH_IMAGEback to summary
private static final int BYTES_PER_GLYPH_IMAGE
Annotations
@Native
BYTES_PER_GLYPH_POSITIONback to summary
private static final int BYTES_PER_GLYPH_POSITION
Annotations
@Native
OFFSET_CONTRASTback to summary
private static final int OFFSET_CONTRAST

The following offsets are used to pack the parameters in createPackedParams(). (They are also used at the native level when unpacking the params.)

Annotations
@Native
OFFSET_POSITIONSback to summary
private static final int OFFSET_POSITIONS
Annotations
@Native
OFFSET_RGBORDERback to summary
private static final int OFFSET_RGBORDER
Annotations
@Native
OFFSET_SUBPIXPOSback to summary
private static final int OFFSET_SUBPIXPOS
Annotations
@Native
rqback to summary
protected final RenderQueue rq

Constructor Detail

BufferedTextPipeback to summary
protected BufferedTextPipe(RenderQueue rq)

Method Detail

createPackedParamsback to summary
private static int createPackedParams(SunGraphics2D sg2d, GlyphList gl)

Packs the given parameters into a single int value in order to save space on the rendering queue. Note that most of these parameters are only used for rendering LCD-optimized text, but conditionalizing this work wouldn't make any impact on performance, so we will pack those parameters even in the non-LCD case.

drawGlyphListback to summary
protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl)

Implements abstract sun.java2d.pipe.GlyphListPipe.drawGlyphList.

Annotations
@Override
drawGlyphListback to summary
protected abstract void drawGlyphList(int numGlyphs, boolean usePositions, boolean subPixPos, boolean rgbOrder, int lcdContrast, float glOrigX, float glOrigY, long[] images, float[] positions)

Called as a separate Runnable when the operation is too large to fit on the RenderQueue. The OGL/D3D pipelines each have their own (small) native implementation of this method.

enqueueGlyphListback to summary
private void enqueueGlyphList(final SunGraphics2D sg2d, final GlyphList gl)
validateContextback to summary
protected abstract void validateContext(SunGraphics2D sg2d, Composite comp)

Validates the state in the provided SunGraphics2D object.