|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.tools.fontlist.FontSpec
public class FontSpec
Represents a font with information on how it can be used from XSL-FO.
Constructor Summary | |
---|---|
FontSpec(java.lang.String key,
FontMetrics metrics)
Creates a new font spec. |
Method Summary | |
---|---|
void |
addFamilyNames(java.util.Collection<java.lang.String> names)
Adds font family names. |
void |
addTriplet(FontTriplet triplet)
Adds a font triplet. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.util.SortedSet |
getFamilyNames()
Returns the font family names. |
FontMetrics |
getFontMetrics()
Returns the font metrics. |
java.lang.String |
getKey()
Returns the internal font key. |
java.util.Collection |
getTriplets()
Returns the font triplets. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontSpec(java.lang.String key, FontMetrics metrics)
key
- the internal font keymetrics
- the font metricsMethod Detail |
---|
public void addFamilyNames(java.util.Collection<java.lang.String> names)
names
- the namespublic void addTriplet(FontTriplet triplet)
triplet
- the font tripletpublic java.util.SortedSet getFamilyNames()
public java.util.Collection getTriplets()
public java.lang.String getKey()
public FontMetrics getFontMetrics()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |