APIdia Launch Partner
Top Description Fields Constructors Methods
sun.font

public final Class XRGlyphCache

extends Object
implements GlyphDisposedListener
Class Inheritance
All Implemented Interfaces
sun.font.GlyphDisposedListener
Imports
java.io.*, java.util.*, sun.awt.*, sun.java2d.xr.*

Glyph cache used by the XRender pipeline.
Author
Clemens Eisserer

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
pack-priv int
pack-priv HashMap<MutableInteger, XRGlyphCacheEntry>
pack-priv XRBackend
pack-priv ArrayList<Integer>
pack-priv int
pack-priv int
pack-priv XRCompositeManager
pack-priv static final int
pack-priv int
pack-priv int
pack-priv MutableInteger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XRGlyphCacheEntry[]
protected void
protected boolean
private void
protected byte[]
generateGlyphImageStream(List<XRGlyphCacheEntry> glyphList)

Copies the glyph-images into a continuous buffer, required for uploading.

protected XRGlyphCacheEntry
getEntryForPointer(long imgPtr)

protected int
public void
protected List<XRGlyphCacheEntry>[]
seperateGlyphTypes(List<XRGlyphCacheEntry> glyphList, boolean containsLCDGlyphs)

Separates lcd and grayscale glyphs queued for upload, and sets the appropriate glyphset for the cache entries.

protected void
uploadGlyphs(XRGlyphCacheEntry[] glyphs, ArrayList<XRGlyphCacheEntry> uncachedGlyphs, GlyphList gl, int[] glIndices)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

batchGlyphUploadback to summary
pack-priv static final boolean batchGlyphUpload
cachedPixelsback to summary
pack-priv int cachedPixels
cacheMapback to summary
pack-priv HashMap<MutableInteger, XRGlyphCacheEntry> cacheMap
conback to summary
pack-priv XRBackend con
freeGlyphIDsback to summary
pack-priv ArrayList<Integer> freeGlyphIDs
grayGlyphSetback to summary
pack-priv int grayGlyphSet
lcdGlyphSetback to summary
pack-priv int lcdGlyphSet
maskBufferback to summary
pack-priv XRCompositeManager maskBuffer
MAX_CACHED_PIXELSback to summary
pack-priv static final int MAX_CACHED_PIXELS
nextIDback to summary
pack-priv int nextID
timeback to summary
pack-priv int time
tmpback to summary
pack-priv MutableInteger tmp

Constructor Detail

XRGlyphCacheback to summary
public XRGlyphCache(XRCompositeManager maskBuf)

Method Detail

cacheGlyphsback to summary
public XRGlyphCacheEntry[] cacheGlyphs(GlyphList glyphList)
clearCacheback to summary
protected void clearCache(XRGlyphCacheEntry[] glyps)
containsLCDGlyphsback to summary
protected boolean containsLCDGlyphs(List<XRGlyphCacheEntry> entries)
freeGlyphsback to summary
private void freeGlyphs(GrowableIntArray glyphIdList)
generateGlyphImageStreamback to summary
protected byte[] generateGlyphImageStream(List<XRGlyphCacheEntry> glyphList)

Copies the glyph-images into a continuous buffer, required for uploading.

getEntryForPointerback to summary
protected XRGlyphCacheEntry getEntryForPointer(long imgPtr)
getFreeGlyphIDback to summary
protected int getFreeGlyphID()
glyphDisposedback to summary
public void glyphDisposed(ArrayList<Long> glyphPtrList)

Implements sun.font.GlyphDisposedListener.glyphDisposed.

Annotations
@Override
seperateGlyphTypesback to summary
protected List<XRGlyphCacheEntry>[] seperateGlyphTypes(List<XRGlyphCacheEntry> glyphList, boolean containsLCDGlyphs)

Separates lcd and grayscale glyphs queued for upload, and sets the appropriate glyphset for the cache entries.

uploadGlyphsback to summary
protected void uploadGlyphs(XRGlyphCacheEntry[] glyphs, ArrayList<XRGlyphCacheEntry> uncachedGlyphs, GlyphList gl, int[] glIndices)