|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xhtmlrenderer.swing.AWTFontResolver
public class AWTFontResolver
Description of the Class
Constructor Summary | |
---|---|
AWTFontResolver()
Constructor for the FontResolverTest object |
Method Summary | |
---|---|
protected static Font |
createFont(SharedContext ctx,
Font root_font,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant)
Description of the Method |
void |
flushCache()
|
protected static String |
getFontInstanceHashName(SharedContext ctx,
String name,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant)
Gets the fontInstanceHashName attribute of the FontResolverTest object |
FSFont |
resolveFont(SharedContext renderingContext,
FontSpecification spec)
|
FSFont |
resolveFont(SharedContext ctx,
String[] families,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant)
Description of the Method |
protected Font |
resolveFont(SharedContext ctx,
String font,
float size,
IdentValue weight,
IdentValue style,
IdentValue variant)
Description of the Method |
void |
setFontMapping(String name,
Font font)
Sets the fontMapping attribute of the FontResolver object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWTFontResolver()
Method Detail |
---|
public void flushCache()
flushCache
in interface FontResolver
public FSFont resolveFont(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)
ctx
- families
- PARAMsize
- PARAMweight
- PARAMstyle
- PARAMvariant
- PARAM
public void setFontMapping(String name, Font font)
name
- The new fontMapping valuefont
- The new fontMapping valueprotected static Font createFont(SharedContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant)
ctx
- root_font
- PARAMsize
- PARAMweight
- PARAMstyle
- PARAMvariant
- PARAM
protected Font resolveFont(SharedContext ctx, String font, float size, IdentValue weight, IdentValue style, IdentValue variant)
ctx
- font
- PARAMsize
- PARAMweight
- PARAMstyle
- PARAMvariant
- PARAM
protected static String getFontInstanceHashName(SharedContext ctx, String name, float size, IdentValue weight, IdentValue style, IdentValue variant)
ctx
- name
- PARAMsize
- PARAMweight
- PARAMstyle
- PARAMvariant
- PARAM @return The fontInstanceHashName valuepublic FSFont resolveFont(SharedContext renderingContext, FontSpecification spec)
resolveFont
in interface FontResolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |