Package org.docx4j.fonts.fop.fonts
Class FontTriplet
java.lang.Object
org.docx4j.fonts.fop.fonts.FontTriplet
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FontTriplet>
public class FontTriplet extends java.lang.Object implements java.lang.Comparable<FontTriplet>, java.io.Serializable
FontTriplet contains information on name, style and weight of one font
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFontTriplet.MatcherMatcher interface forFontTriplet. -
Field Summary
Fields Modifier and Type Field Description static FontTripletDEFAULT_FONT_TRIPLET -
Constructor Summary
Constructors Constructor Description FontTriplet()FontTriplet(java.lang.String name, java.lang.String style, int weight)Creates a new font triplet.FontTriplet(java.lang.String name, java.lang.String style, int weight, int priority)Creates a new font triplet. -
Method Summary
Modifier and Type Method Description intcompareTo(FontTriplet o)booleanequals(java.lang.Object obj)java.lang.StringgetName()intgetPriority()java.lang.StringgetStyle()intgetWeight()inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
DEFAULT_FONT_TRIPLET
-
-
Constructor Details
-
FontTriplet
public FontTriplet() -
FontTriplet
public FontTriplet(java.lang.String name, java.lang.String style, int weight)Creates a new font triplet.- Parameters:
name- font namestyle- font style (normal, italic etc.)weight- font weight (100, 200, 300...800, 900)
-
FontTriplet
public FontTriplet(java.lang.String name, java.lang.String style, int weight, int priority)Creates a new font triplet.- Parameters:
name- font namestyle- font style (normal, italic etc.)weight- font weight (100, 200, 300...800, 900)priority- priority of this triplet/font mapping
-
-
Method Details
-
getName
public java.lang.String getName()- Returns:
- the font name
-
getStyle
public java.lang.String getStyle()- Returns:
- the font style
-
getWeight
public int getWeight()- Returns:
- the font weight
-
getPriority
public int getPriority()- Returns:
- the priority of this triplet/font mapping
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<FontTriplet>
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-