org.apache.fop.fonts
Class FontTriplet
java.lang.Object
|
+--org.apache.fop.fonts.FontTriplet
- public class FontTriplet
- extends java.lang.Object
FontTriplet contains information on name, weight, style of one font
Constructor Summary |
FontTriplet(java.lang.String name,
java.lang.String weight,
java.lang.String style)
Creates a new font triplet. |
Method Summary |
java.lang.String |
getName()
Returns the font name. |
java.lang.String |
getStyle()
Returns the font style. |
java.lang.String |
getWeight()
Returns the font weight. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FontTriplet
public FontTriplet(java.lang.String name,
java.lang.String weight,
java.lang.String style)
- Creates a new font triplet.
- Parameters:
name
- font nameweight
- font weight (normal, bold etc.)style
- font style (normal, italic etc.)
getName
public java.lang.String getName()
- Returns the font name.
- Returns:
- the font name
getWeight
public java.lang.String getWeight()
- Returns the font weight.
- Returns:
- the font weight
getStyle
public java.lang.String getStyle()
- Returns the font style.
- Returns:
- the font style
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.