public abstract class PrismFontStrike<T extends PrismFontFile> extends java.lang.Object implements FontStrike
| Modifier and Type | Field and Description |
|---|---|
private int |
aaMode |
private FontStrikeDesc |
desc |
private DisposerRecord |
disposer |
protected boolean |
drawShapes |
private T |
fontResource |
private java.util.Map<java.lang.Integer,Glyph> |
glyphMap |
private int |
hash |
private PrismMetrics |
metrics |
private float |
size |
private BaseTransform |
transform |
| Modifier | Constructor and Description |
|---|---|
protected |
PrismFontStrike(T fontResource,
float size,
BaseTransform tx,
int aaMode,
FontStrikeDesc desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDesc() |
protected abstract DisposerRecord |
createDisposer(FontStrikeDesc desc) |
protected abstract Glyph |
createGlyph(int glyphCode) |
protected abstract Path2D |
createGlyphOutline(int glyphCode) |
boolean |
drawAsShapes() |
boolean |
equals(java.lang.Object obj) |
int |
getAAMode() |
float |
getCharAdvance(char ch)
Access to individual character advances are frequently needed for layout
understand that advance may vary for single glyph if ligatures or kerning
are enabled
|
(package private) DisposerRecord |
getDisposer() |
T |
getFontResource() |
Glyph |
getGlyph(char ch) |
Glyph |
getGlyph(int glyphCode) |
Metrics |
getMetrics() |
Shape |
getOutline(GlyphList gl,
BaseTransform transform) |
(package private) void |
getOutline(GlyphList gl,
BaseTransform transform,
Path2D p) |
int |
getQuantizedPosition(Point2D point)
Modifies the point argument to the quantized position suitable for the
underlying glyph rasterizer.
|
float |
getSize()
Returns the notional size of this strike with
the graphics transform factored out.
|
BaseTransform |
getTransform() |
int |
hashCode() |
java.lang.String |
toString() |
private DisposerRecord disposer
private T extends PrismFontFile fontResource
private java.util.Map<java.lang.Integer,Glyph> glyphMap
private PrismMetrics metrics
protected boolean drawShapes
private float size
private BaseTransform transform
private int aaMode
private FontStrikeDesc desc
private int hash
protected PrismFontStrike(T fontResource, float size, BaseTransform tx, int aaMode, FontStrikeDesc desc)
DisposerRecord getDisposer()
protected abstract DisposerRecord createDisposer(FontStrikeDesc desc)
public void clearDesc()
clearDesc in interface FontStrikepublic float getSize()
getSize in interface FontStrikepublic Metrics getMetrics()
getMetrics in interface FontStrikepublic T getFontResource()
getFontResource in interface FontStrikepublic boolean drawAsShapes()
drawAsShapes in interface FontStrikepublic int getAAMode()
getAAMode in interface FontStrikepublic BaseTransform getTransform()
getTransform in interface FontStrikepublic int getQuantizedPosition(Point2D point)
FontStrikeGlyph.getPixelData(int) in order to obtain the correct glyph mask
for the given point.getQuantizedPosition in interface FontStrikepublic float getCharAdvance(char ch)
getCharAdvance in interface FontStrikech - charpublic Glyph getGlyph(char ch)
getGlyph in interface FontStrikeprotected abstract Glyph createGlyph(int glyphCode)
public Glyph getGlyph(int glyphCode)
getGlyph in interface FontStrikeprotected abstract Path2D createGlyphOutline(int glyphCode)
public Shape getOutline(GlyphList gl, BaseTransform transform)
getOutline in interface FontStrikevoid getOutline(GlyphList gl, BaseTransform transform, Path2D p)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object