|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.manager.AbstractBackendFontManager
public abstract class AbstractBackendFontManager
Abstract Backend font manager.
| Field Summary | |
|---|---|
protected BackendFontFactory |
factory
The back-end font factory. |
protected java.util.Map<FontKey,ManagerInfo> |
fontList
The font list. |
protected boolean |
newRecongnizedFont
Is it a recognized font? |
protected BackendCharacter |
recognizedCharcterId
The back-end character. |
protected BackendFont |
recognizedFont
The recognized font. |
| Constructor Summary | |
|---|---|
AbstractBackendFontManager()
Creates a new object. |
|
| Method Summary | |
|---|---|
BackendCharacter |
getRecognizedCharId()
Get the char info for the most recently recognized pair of font and character. |
BackendFont |
getRecognizedFont()
Get the font info for the most recently recognized pair of font and character. |
boolean |
isNewRecongnizedFont()
Get the new font indicator for the most recently recognized pair of font and character. |
java.util.Iterator<ManagerInfo> |
iterate()
Return the iterator for all recognized back-end fonts as ManagerInfo. |
void |
reset()
Rest the internal state to the initial state. |
void |
setBackendFontFactory(BackendFontFactory f)
Setter for the back-end font factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.extex.font.BackendFontManager |
|---|
recognize |
| Field Detail |
|---|
protected BackendFontFactory factory
protected java.util.Map<FontKey,ManagerInfo> fontList
protected boolean newRecongnizedFont
protected BackendCharacter recognizedCharcterId
protected BackendFont recognizedFont
| Constructor Detail |
|---|
public AbstractBackendFontManager()
| Method Detail |
|---|
public BackendCharacter getRecognizedCharId()
null is returned.
getRecognizedCharId in interface BackendFontManagerBackendFontManager.getRecognizedCharId()public BackendFont getRecognizedFont()
null is returned.
getRecognizedFont in interface BackendFontManagerBackendFontManager.getRecognizedFont()public boolean isNewRecongnizedFont()
true is returned. The font compared for this test is the
back-end font – not the font passed in. This means that each time
getRecognizedFont() returns a new font info this method returns
true.
If invoked before any character has been recognized successfully then
null is returned.
isNewRecongnizedFont in interface BackendFontManagerBackendFontManager.isNewRecongnizedFont()public java.util.Iterator<ManagerInfo> iterate()
ManagerInfo. The fonts are sorted by the name.
iterate in interface BackendFontManagerManagerInfo.BackendFontManager.iterate()public void reset()
reset in interface BackendFontManagerBackendFontManager.reset()public void setBackendFontFactory(BackendFontFactory f)
setBackendFontFactory in interface BackendFontManagerf - the back-end font factory to setBackendFontManager.setBackendFontFactory(org.extex.font.BackendFontFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||