org.apache.fop.render.afp
Class AFPFontAttributes

java.lang.Object
  extended byorg.apache.fop.render.afp.AFPFontAttributes

public class AFPFontAttributes
extends java.lang.Object

This class encapsulates the font atributes that need to be included in the AFP data stream. This class does not assist in converting the font attributes to AFP code pages and character set values.


Constructor Summary
AFPFontAttributes(java.lang.String fontFamily, java.lang.String fontWeight, java.lang.String fontStyle, int pointSize)
          Constructor for the AFPFontAttributes
 
Method Summary
 java.lang.String getFontFamily()
           
 java.lang.String getFontKey()
           
 byte getFontReference()
           
 java.lang.String getFontStyle()
           
 java.lang.String getFontWeight()
           
 int getPointSize()
           
 void setFontReference(int fontReference)
          Sets the FontReference attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFPFontAttributes

public AFPFontAttributes(java.lang.String fontFamily,
                         java.lang.String fontWeight,
                         java.lang.String fontStyle,
                         int pointSize)
Constructor for the AFPFontAttributes

Parameters:
fontFamily - the font family name
fontWeight - the font weight
fontStyle - the font style
pointSize - the point size
Method Detail

getFontFamily

public java.lang.String getFontFamily()
Returns:
the FontFamily attribute

getFontKey

public java.lang.String getFontKey()
Returns:
the FontKey attribute

getFontStyle

public java.lang.String getFontStyle()
Returns:
the font style attribute

getFontWeight

public java.lang.String getFontWeight()
Returns:
the font weight attribute

getPointSize

public int getPointSize()
Returns:
the point size attribute

getFontReference

public byte getFontReference()
Returns:
the FontReference attribute

setFontReference

public void setFontReference(int fontReference)
Sets the FontReference attribute

Parameters:
fontReference - the FontReference to set