APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.prism.impl

public Class GlyphCache

extends Object
Class Inheritance
Imports
com.sun.javafx.font.CharToGlyphMapper, .CompositeGlyphMapper, .FontResource, .FontStrike, .Glyph, com.sun.javafx.geom.BaseBounds, .Rectangle, .Point2D, com.sun.javafx.geom.transform.BaseTransform, com.sun.javafx.scene.text.GlyphList, com.sun.prism.impl.packrect.RectanglePacker, com.sun.prism.Texture, .ResourceFactory, .Texture.WrapMode, com.sun.prism.impl.shape.MaskData, com.sun.prism.paint.Color, java.nio.ByteBuffer, java.util.HashMap, .WeakHashMap, com.sun.javafx.logging.PulseLogger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final BaseContext
private static ByteBuffer
pack-priv HashMap<Integer, GlyphCache.GlyphData[]>
pack-priv static WeakHashMap<BaseContext, RectanglePacker>
private static final int
private boolean
pack-priv static WeakHashMap<BaseContext, RectanglePacker>
private RectanglePacker
private static final int
private static final int
private static final int
private final FontStrike
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addDataToQuad(GlyphCache.GlyphData data, VertexBuffer vb, Texture tex, float x, float y, float dstw, float dsth)

public void
private void
public static void
private static void
public Texture
private GlyphCache.GlyphData
getCachedGlyph(int glyphCode, int subPixel)

public void
render(BaseContext ctx, GlyphList gl, float x, float y, int start, int end, Color rangeColor, Color textColor, BaseTransform xform, BaseBounds clip)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final BaseContext context
emptyMaskback to summary
private static ByteBuffer emptyMask
glyphDataMapback to summary
pack-priv HashMap<Integer, GlyphCache.GlyphData[]> glyphDataMap
greyPackerMapback to summary
pack-priv static WeakHashMap<BaseContext, RectanglePacker> greyPackerMap
HEIGHTback to summary
private static final int HEIGHT
isLCDCacheback to summary
private boolean isLCDCache
lcdPackerMapback to summary
pack-priv static WeakHashMap<BaseContext, RectanglePacker> lcdPackerMap
packerback to summary
private RectanglePacker packer
SEGMASKback to summary
private static final int SEGMASK
SEGSHIFTback to summary
private static final int SEGSHIFT
SEGSIZEback to summary
private static final int SEGSIZE
strikeback to summary
private final FontStrike strike
SUBPIXEL_SHIFTback to summary
private static final int SUBPIXEL_SHIFT
WIDTHback to summary
private static final int WIDTH

Constructor Detail

GlyphCacheback to summary
public GlyphCache(BaseContext context, FontStrike strike)

Method Detail

addDataToQuadback to summary
private void addDataToQuad(GlyphCache.GlyphData data, VertexBuffer vb, Texture tex, float x, float y, float dstw, float dsth)
clearback to summary
public void clear()
clearAllback to summary
private void clearAll()
disposeForContextback to summary
public static void disposeForContext(BaseContext ctx)
disposePackerForContextback to summary
private static void disposePackerForContext(BaseContext ctx, WeakHashMap<BaseContext, RectanglePacker> packerMap)
getBackingStoreback to summary
public Texture getBackingStore()
getCachedGlyphback to summary
private GlyphCache.GlyphData getCachedGlyph(int glyphCode, int subPixel)
renderback to summary
public void render(BaseContext ctx, GlyphList gl, float x, float y, int start, int end, Color rangeColor, Color textColor, BaseTransform xform, BaseBounds clip)
com.sun.prism.impl back to summary

pack-priv Class GlyphCache.GlyphData

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final Rectangle
private final float
private final float

Constructor Summary

AccessConstructor and Description
pack-priv
GlyphData(int originX, int originY, int blankBoundary, float xAdvance, float yAdvance, Rectangle rect)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv Rectangle
pack-priv float
pack-priv float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blankBoundaryback to summary
private final int blankBoundary
originXback to summary
private final int originX
originYback to summary
private final int originY
rectback to summary
private final Rectangle rect
xAdvanceback to summary
private final float xAdvance
yAdvanceback to summary
private final float yAdvance

Constructor Detail

GlyphDataback to summary
pack-priv GlyphData(int originX, int originY, int blankBoundary, float xAdvance, float yAdvance, Rectangle rect)

Method Detail

getBlankBoundaryback to summary
pack-priv int getBlankBoundary()
getOriginXback to summary
pack-priv int getOriginX()
getOriginYback to summary
pack-priv int getOriginY()
getRectback to summary
pack-priv Rectangle getRect()
getXAdvanceback to summary
pack-priv float getXAdvance()
getYAdvanceback to summary
pack-priv float getYAdvance()