|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.pdf.PdfFont
public class PdfFont
Handles fonts for the PDF plugin
Field Summary | |
---|---|
private boolean |
bold
is font bold? |
private PdfFontFactory |
fontFactory
font factory for creating an iText font |
private GDD |
gdd
|
private boolean |
italics
is fond italic? |
private com.lowagie.text.Font |
iTfont
the iText font |
private PdfData |
pdfData
|
private float |
size
font size |
private Source |
source
file and line number of last change |
private java.lang.String |
typeface
the font typeface in the form of a string used by iText |
Constructor Summary | |
---|---|
PdfFont(PdfData pdd)
|
|
PdfFont(PdfData pdd,
java.lang.String fontName,
PdfFont existingFont)
Constructor for cloning an existing PdfFont, but specifying a different typeface. |
Method Summary | |
---|---|
PdfFont |
clone()
|
boolean |
getBold()
|
java.lang.String |
getFace()
|
boolean |
getItalics()
|
com.lowagie.text.Font |
getItextFont()
Get the iText font |
float |
getSize()
|
Source |
getSource()
|
void |
setBold(boolean onOff,
Source newSource)
set bold on/off and re-create the iText font to record the change. |
void |
setFace(java.lang.String newFace,
Source newSource)
|
void |
setItalics(boolean onOff,
Source newSource)
set italics on/off and re-create the iText font to record the change. |
void |
setSize(float newSize,
Source newSource)
|
void |
setToDefault()
Initializes all PdfFont fields to defaults, and sets line number to 0 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private com.lowagie.text.Font iTfont
private java.lang.String typeface
private float size
private boolean bold
private boolean italics
private Source source
private PdfFontFactory fontFactory
private GDD gdd
private PdfData pdfData
Constructor Detail |
---|
public PdfFont(PdfData pdd)
public PdfFont(PdfData pdd, java.lang.String fontName, PdfFont existingFont)
pdd
- PDF datafontName
- the name of the new font/typefaceexistingFont
- the font to clone the other attributes fromMethod Detail |
---|
public void setToDefault()
public PdfFont clone()
clone
in class java.lang.Object
public boolean getBold()
public boolean getItalics()
public com.lowagie.text.Font getItextFont()
public java.lang.String getFace()
public float getSize()
public Source getSource()
public void setBold(boolean onOff, Source newSource)
onOff
- the new value for the italics settingnewSource
- the file and line # of the token that changed italicspublic void setItalics(boolean onOff, Source newSource)
onOff
- the new value for the italics settingnewSource
- the file and line # of the token that changed italicspublic void setSize(float newSize, Source newSource)
public void setFace(java.lang.String newFace, Source newSource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |