org.ujac.print
Class TrueTypeFontHolder

java.lang.Object
  extended by org.ujac.print.TrueTypeFontHolder

public class TrueTypeFontHolder
extends Object

Name: TrueTypeFontHolder
Description: A class holding true type fonts for the possible font styles.

Author:
lauerc

Constructor Summary
TrueTypeFontHolder(String name)
          Constructs a TrueTypeFontHolder instance with specific attributes.
 
Method Summary
 com.lowagie.text.pdf.BaseFont getBoldFont()
          Getter method for the the property boldFont.
 com.lowagie.text.pdf.BaseFont getBoldItalicFont()
          Getter method for the the property boldItalicFont.
 boolean getCached()
          Getter method for the the property cached.
 boolean getEmbedded()
          Getter method for the the property embedded.
 com.lowagie.text.pdf.BaseFont getItalicFont()
          Getter method for the the property italicFont.
 String getName()
          Getter method for the the property name.
 com.lowagie.text.pdf.BaseFont getNormalFont()
          Getter method for the the property normalFont.
 void setBoldFont(byte[] ttfAfm)
          Setter method for the the property boldFont.
 void setBoldItalicFont(byte[] ttfAfm)
          Setter method for the the property boldItalicFont.
 void setCached(boolean cached)
          Setter method for the the property cached.
 void setEmbedded(boolean embedded)
          Setter method for the the property embedded.
 void setItalicFont(byte[] ttfAfm)
          Setter method for the the property italicFont.
 void setName(String name)
          Setter method for the the property name.
 void setNormalFont(byte[] ttfAfm)
          Setter method for the the property normalFont.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrueTypeFontHolder

public TrueTypeFontHolder(String name)
Constructs a TrueTypeFontHolder instance with specific attributes.

Parameters:
name - The font name.
Method Detail

getName

public String getName()
Getter method for the the property name.

Returns:
The current value of property name.

setName

public void setName(String name)
Setter method for the the property name.

Parameters:
name - The value to set for the property name.

getEmbedded

public boolean getEmbedded()
Getter method for the the property embedded.

Returns:
The current value of property embedded.

setEmbedded

public void setEmbedded(boolean embedded)
Setter method for the the property embedded.

Parameters:
embedded - The value to set for the property embedded.

getCached

public boolean getCached()
Getter method for the the property cached.

Returns:
The current value of property cached.

setCached

public void setCached(boolean cached)
Setter method for the the property cached.

Parameters:
cached - The value to set for the property cached.

getNormalFont

public com.lowagie.text.pdf.BaseFont getNormalFont()
Getter method for the the property normalFont.

Returns:
The current value of property normalFont.

setNormalFont

public void setNormalFont(byte[] ttfAfm)
                   throws IOException,
                          com.lowagie.text.DocumentException
Setter method for the the property normalFont.

Parameters:
ttfAfm - The TTF font data.
Throws:
IOException - In case the base font creation failed.
com.lowagie.text.DocumentException - In case the base font creation failed.

getBoldFont

public com.lowagie.text.pdf.BaseFont getBoldFont()
Getter method for the the property boldFont.

Returns:
The current value of property boldFont.

setBoldFont

public void setBoldFont(byte[] ttfAfm)
                 throws IOException,
                        com.lowagie.text.DocumentException
Setter method for the the property boldFont.

Parameters:
ttfAfm - The TTF font data.
Throws:
IOException - In case the base font creation failed.
com.lowagie.text.DocumentException - In case the base font creation failed.

getItalicFont

public com.lowagie.text.pdf.BaseFont getItalicFont()
Getter method for the the property italicFont.

Returns:
The current value of property italicFont.

setItalicFont

public void setItalicFont(byte[] ttfAfm)
                   throws IOException,
                          com.lowagie.text.DocumentException
Setter method for the the property italicFont.

Parameters:
ttfAfm - The TTF font data.
Throws:
IOException - In case the base font creation failed.
com.lowagie.text.DocumentException - In case the base font creation failed.

getBoldItalicFont

public com.lowagie.text.pdf.BaseFont getBoldItalicFont()
Getter method for the the property boldItalicFont.

Returns:
The current value of property boldItalicFont.

setBoldItalicFont

public void setBoldItalicFont(byte[] ttfAfm)
                       throws IOException,
                              com.lowagie.text.DocumentException
Setter method for the the property boldItalicFont.

Parameters:
ttfAfm - The TTF font data.
Throws:
IOException - In case the base font creation failed.
com.lowagie.text.DocumentException - In case the base font creation failed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.