|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.jpdf.PDFObject
gnu.jpdf.PDFFont
public class PDFFont
This class defines a font within a PDF document.
Field Summary |
---|
Fields inherited from class gnu.jpdf.PDFObject |
---|
objser, pdfDocument |
Constructor Summary | |
---|---|
protected |
PDFFont()
This constructs a default PDFFont. |
|
PDFFont(java.lang.String name,
java.lang.String type,
java.lang.String font,
int style)
Constructs a PDFFont. |
Method Summary | |
---|---|
protected boolean |
equals(java.lang.String type,
java.lang.String font,
int style)
This is used by the PDF and PDFPage classes to compare font names |
java.lang.String |
getFont()
|
java.lang.String |
getName()
This is the most common method to use. |
int |
getStyle()
|
java.lang.String |
getType()
Returns the PDF Type of this object |
void |
write(java.io.OutputStream os)
Writes the object to the output stream. |
Methods inherited from class gnu.jpdf.PDFObject |
---|
getPDFDocument, getSerialID, toArray, toString, writeEnd, writeStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PDFFont()
public PDFFont(java.lang.String name, java.lang.String type, java.lang.String font, int style)
name
- The document name, ie /F1type
- The pdf type, ie /Type1font
- The font name, ie Helveticastyle
- The java.awt.Font style, ie: Font.PLAINMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getType()
PDFObject
getType
in class PDFObject
public java.lang.String getFont()
public int getStyle()
Font
public void write(java.io.OutputStream os) throws java.io.IOException
PDFObject
Writes the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
write
in class PDFObject
os
- OutputStream to send the object to
java.io.IOException
- on errorprotected boolean equals(java.lang.String type, java.lang.String font, int style)
type
- The pdf type, ie /Type1font
- The font name, ie Helveticastyle
- The java.awt.Font style, ie: Font.PLAIN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |