public class StandardFontRegistry extends java.lang.Object implements IFontRegistry
Constructor and Description |
---|
StandardFontRegistry() |
Modifier and Type | Method and Description |
---|---|
protected IFont |
basicLookup(java.lang.String key,
IFontQuery query) |
protected boolean |
basicMatchFamily(IFontQuery query,
IFont font) |
protected boolean |
basicMatchFamilyStyle(IFontQuery query,
IFont font) |
protected void |
basicRegister(java.lang.String key,
IFont value) |
IFontFamily[] |
getFontFamilies()
|
IFont[] |
getFonts()
The
IFont instances in this IFontRegistry . |
protected java.lang.Object |
getLookupKeyFontFamily(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontName(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNameAsCanonical(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNameCanonical(IFontQuery query) |
protected java.lang.String |
getLookupKeyFontNamePostScript(IFontQuery query) |
IFont |
lookupFont(IFontQuery query)
The
IFont selected by the IFontQuery . |
IFontFamily |
lookupFontFamily(IFontQuery query)
The
IFontFamily selected by the IFontQuery . |
void |
registerFont(IFont font)
Add a new
IFont to the IFontRegistry . |
protected java.lang.String |
removeSpaces(java.lang.String name) |
protected IFont basicLookup(java.lang.String key, IFontQuery query)
protected boolean basicMatchFamily(IFontQuery query, IFont font)
protected boolean basicMatchFamilyStyle(IFontQuery query, IFont font)
protected void basicRegister(java.lang.String key, IFont value)
public IFontFamily[] getFontFamilies()
IFontRegistry
getFontFamilies
in interface IFontRegistry
IFontFamily
instances formed by the IFont
instances in this IFontRegistry
.public IFont[] getFonts()
IFontRegistry
IFont
instances in this IFontRegistry
.getFonts
in interface IFontRegistry
IFont
instances in this IFontRegistry
.protected java.lang.Object getLookupKeyFontFamily(IFontQuery query)
protected java.lang.String getLookupKeyFontName(IFontQuery query)
protected java.lang.String getLookupKeyFontNameAsCanonical(IFontQuery query)
protected java.lang.String getLookupKeyFontNameCanonical(IFontQuery query)
protected java.lang.String getLookupKeyFontNamePostScript(IFontQuery query)
public IFont lookupFont(IFontQuery query)
IFontRegistry
IFont
selected by the IFontQuery
.lookupFont
in interface IFontRegistry
query
- A IFontQuery
describing a single IFont
.IFont
selected by the IFontQuery
.public IFontFamily lookupFontFamily(IFontQuery query)
IFontRegistry
IFontFamily
selected by the IFontQuery
.lookupFontFamily
in interface IFontRegistry
query
- A IFontQuery
describing a single IFontFamily
.IFontFamily
selected by the IFontQuery
.public void registerFont(IFont font)
IFontRegistry
IFont
to the IFontRegistry
.registerFont
in interface IFontRegistry
font
- The new IFont
protected java.lang.String removeSpaces(java.lang.String name)