|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.PlatyFont
public class PlatyFont
PlatyFont contains font information that can be used in Platypus It's not called Font, due to naming conflict with iText.
| Field Summary | |
|---|---|
private boolean |
bold
is font bold? |
private com.lowagie.text.Font |
font
an iText font data item |
private boolean |
italic
is font italic/slanted? |
private int |
lineNumber
line number in the input file at which this font was specified |
private float |
size
size of font in points |
private java.lang.String |
typeface
name of typeface as used by iText |
| Constructor Summary | |
|---|---|
PlatyFont()
set up PlatyFont. |
|
PlatyFont(boolean pure,
java.lang.String fontName,
float fontSize)
If pure, then set up a de minimus font with all ornaments turned off |
|
PlatyFont(float fontSize)
set up PlatyFont, using the current font but changing its size |
|
PlatyFont(java.lang.String fontName)
set up PlatyFont. |
|
PlatyFont(java.lang.String fontName,
float fontSize)
set up PlatyFont using the specified font name and font size |
|
| Method Summary | |
|---|---|
private void |
adjustStrikethru()
when the size of a font changes, the place where the strikethru line appears should change, so that on a relative basis it crosses through the same part of each character, regardless of the height of the character. |
com.lowagie.text.Font |
getFont()
return the core font element in PlatyFont |
int |
getLineNumber()
|
float |
getSize()
|
java.lang.String |
getTypeface()
|
boolean |
isBold()
|
boolean |
isItalic()
|
void |
setBold(boolean boldOnOff)
|
void |
setFont(com.lowagie.text.Font newFont)
|
void |
setItalic(boolean italicOnOff)
|
void |
setLineNumber(int newLineNumber)
|
void |
setSize(float newSize)
|
void |
setTypeface(java.lang.String newTypeface)
|
com.lowagie.text.Font |
setupFont()
Does the actual heavy lifting of setting up the new font. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private com.lowagie.text.Font font
private int lineNumber
private boolean bold
private boolean italic
private java.lang.String typeface
private float size
| Constructor Detail |
|---|
public PlatyFont()
public PlatyFont(java.lang.String fontName)
fontName - the specified font name/typefacepublic PlatyFont(float fontSize)
fontSize - the new font size
public PlatyFont(java.lang.String fontName,
float fontSize)
fontName - name of font to usefontSize - size in points
public PlatyFont(boolean pure,
java.lang.String fontName,
float fontSize)
pure - | Method Detail |
|---|
public com.lowagie.text.Font setupFont()
public void setBold(boolean boldOnOff)
public boolean isBold()
public void setItalic(boolean italicOnOff)
public boolean isItalic()
public void setFont(com.lowagie.text.Font newFont)
public com.lowagie.text.Font getFont()
public void setLineNumber(int newLineNumber)
public int getLineNumber()
public float getSize()
public void setSize(float newSize)
public void setTypeface(java.lang.String newTypeface)
public java.lang.String getTypeface()
private void adjustStrikethru()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||