com.etymon.pj.object
Class PjFont
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjFont
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- PjFontType1
public abstract class PjFont
- extends PjDictionary
A representation of a PDF font dictionary (abstract base class).
Constructor Summary |
PjFont()
Creates a new font dictionary. |
PjFont(java.util.Hashtable h)
Creates a font dictionary as a wrapper around a Hashtable. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjFont
public PjFont()
- Creates a new font dictionary.
PjFont
public PjFont(java.util.Hashtable h)
- Creates a font dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setName
public void setName(PjName name)
getName
public PjObject getName()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setBaseFont
public void setBaseFont(PjName baseFont)
setBaseFont
public void setBaseFont(PjReference baseFont)
getBaseFont
public PjObject getBaseFont()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFirstChar
public void setFirstChar(PjNumber firstChar)
setFirstChar
public void setFirstChar(PjReference firstChar)
getFirstChar
public PjObject getFirstChar()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setLastChar
public void setLastChar(PjNumber lastChar)
setLastChar
public void setLastChar(PjReference lastChar)
getLastChar
public PjObject getLastChar()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setWidths
public void setWidths(PjReference widths)
getWidths
public PjObject getWidths()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setEncoding
public void setEncoding(PjDictionary encoding)
setEncoding
public void setEncoding(PjName encoding)
setEncoding
public void setEncoding(PjReference encoding)
getEncoding
public PjObject getEncoding()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFontDescriptor
public void setFontDescriptor(PjReference fontDescriptor)
getFontDescriptor
public PjObject getFontDescriptor()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException