|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.FontKey
public class FontKey
Class for a font key.
Font key is a collection several attributes. The central attribute is the
name. If the name is null, then the special null font is
meant.
properties:
true, the ligature information are used.true, the kerning information are used.Tags:
Each font can get several tags (e.g. OpenType: latn, kern)
| Field Summary | |
|---|---|
static java.lang.String |
KERNING
Use the kerning information of the font. |
static java.lang.String |
LANGUAGE
The language for the font. |
static java.lang.String |
LETTERSPACE
Use the letterspaced information of the font. |
static java.lang.String |
LIGATURES
Use the ligature information of the font. |
static java.lang.String |
SCALE
The scaling factor of the font. |
static java.lang.String |
SIZE
The size of the font. |
| Constructor Summary | |
|---|---|
protected |
FontKey(FontKey fk)
Create a new object (only in the same name space!). |
protected |
FontKey(java.lang.String theName)
Create a new object (only in the same name space!). |
| Method Summary | |
|---|---|
protected void |
add(java.util.List<java.lang.String> theTags)
Add a list of tags. |
boolean |
eq(FontKey k)
Check, if the font keys are equals. |
boolean |
getBoolean(java.lang.String key)
Returns the value for the key or false, if no key exists
in the map. |
protected java.util.Map<java.lang.String,java.lang.Boolean> |
getBooleanMap()
Returns the booleanMap. |
FixedCount |
getCount(java.lang.String key)
Returns the value for the key or null, if no key exists
in the map. |
protected java.util.Map<java.lang.String,FixedCount> |
getCountMap()
Returns the countMap. |
FixedDimen |
getDimen(java.lang.String key)
Returns the value for the key or null, if no key exists
in the map. |
protected java.util.Map<java.lang.String,FixedDimen> |
getDimenMap()
Returns the dimenMap. |
FixedGlue |
getGlue(java.lang.String key)
Returns the value for the key or null, if no key exists
in the map. |
protected java.util.Map<java.lang.String,FixedGlue> |
getGlueMap()
Returns the glueMap. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getString(java.lang.String key)
Returns the value for the key or null, if no key exists
in the map. |
protected java.util.Map<java.lang.String,java.lang.String> |
getStringMap()
Returns the stringMap. |
java.util.List<java.lang.String> |
getTags()
Getter for the tags. |
boolean |
hasBoolean(java.lang.String key)
Check, if the key exists in the map. |
boolean |
hasCount(java.lang.String key)
Check, if the key exists in the map. |
boolean |
hasDimen(java.lang.String key)
Check, if the key exists in the map. |
boolean |
hasGlue(java.lang.String key)
Check, if the key exists in the map. |
boolean |
hasString(java.lang.String key)
Check, if the key exists in the map. |
boolean |
hasTag(java.lang.String name)
Returns true, if the tag is set. |
protected void |
put(java.util.Map<java.lang.String,?> theMap)
Put an key values pair on the map. |
protected void |
put(java.lang.String key,
boolean value)
Put an key values pair on the map. |
protected void |
put(java.lang.String key,
FixedCount value)
Put an key values pair on the map. |
protected void |
put(java.lang.String key,
FixedDimen value)
Put an key values pair on the map. |
protected void |
put(java.lang.String key,
FixedGlue value)
Put an key values pair on the map. |
protected void |
put(java.lang.String key,
java.lang.String value)
Put an key values pair on the map. |
java.lang.String |
toString()
Returns the value of the FontKey as String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KERNING
public static final java.lang.String LANGUAGE
public static final java.lang.String LETTERSPACE
public static final java.lang.String LIGATURES
public static final java.lang.String SCALE
public static final java.lang.String SIZE
| Constructor Detail |
|---|
protected FontKey(FontKey fk)
fk - The font key.protected FontKey(java.lang.String theName)
theName - The name of the font.| Method Detail |
|---|
protected void add(java.util.List<java.lang.String> theTags)
theTags - The list of tags.public boolean eq(FontKey k)
k - The font key for the check.
true, if the keys are equals.public boolean getBoolean(java.lang.String key)
false, if no key exists
in the map.
key - The key.
protected java.util.Map<java.lang.String,java.lang.Boolean> getBooleanMap()
public FixedCount getCount(java.lang.String key)
null, if no key exists
in the map.
key - The key.
protected java.util.Map<java.lang.String,FixedCount> getCountMap()
public FixedDimen getDimen(java.lang.String key)
null, if no key exists
in the map.
key - The key.
protected java.util.Map<java.lang.String,FixedDimen> getDimenMap()
public FixedGlue getGlue(java.lang.String key)
null, if no key exists
in the map.
key - The key.
protected java.util.Map<java.lang.String,FixedGlue> getGlueMap()
public java.lang.String getName()
public java.lang.String getString(java.lang.String key)
null, if no key exists
in the map.
key - The key.
protected java.util.Map<java.lang.String,java.lang.String> getStringMap()
public java.util.List<java.lang.String> getTags()
public boolean hasBoolean(java.lang.String key)
key - The key.
true, if the key exists.public boolean hasCount(java.lang.String key)
key - The key.
true, if the key exists.public boolean hasDimen(java.lang.String key)
key - The key.
true, if the key exists.public boolean hasGlue(java.lang.String key)
key - The key.
true, if the key exists.public boolean hasString(java.lang.String key)
key - The key.
true, if the key exists.public boolean hasTag(java.lang.String name)
true, if the tag is set.
name - The name of the tag.
true, if the tag is set.protected void put(java.util.Map<java.lang.String,?> theMap)
theMap - The map.
protected void put(java.lang.String key,
boolean value)
key - The key.value - The value.
protected void put(java.lang.String key,
FixedCount value)
key - The key.value - The value.
protected void put(java.lang.String key,
FixedDimen value)
key - The key.value - The value.
protected void put(java.lang.String key,
FixedGlue value)
key - The key.value - The value.
protected void put(java.lang.String key,
java.lang.String value)
key - The key.value - The value.public java.lang.String toString()
FontKey as String.
If a value is null, then the text 'null' is returned.
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||