|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.html.commands.HtmlFsize
public class HtmlFsize
Implementation of fsize (in font family of commands) for the HTML plugin
Field Summary | |
---|---|
private java.lang.String |
root
|
Constructor Summary | |
---|---|
HtmlFsize()
|
Method Summary | |
---|---|
java.lang.String |
getRoot()
get the root of the command. |
(package private) boolean |
inEmptyParagraph(com.lowagie.text.Paragraph iTPara)
Sees if any text has been written to the current paragraph. |
int |
process(IOutputContext context,
Token tok,
int tokNum)
method for processing this command in the output plugin. |
private void |
updateLeading(IOutputContext context,
Token tok,
int tokNum,
float newFontSize)
Updates the leading by running the command PdfLeading with the new value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String root
Constructor Detail |
---|
public HtmlFsize()
Method Detail |
---|
public int process(IOutputContext context, Token tok, int tokNum)
IOutputCommand
process
in interface IOutputCommand
context
- the context/state of the output documenttok
- the command token as found in the token streamtokNum
- the number of the token in the token listprivate void updateLeading(IOutputContext context, Token tok, int tokNum, float newFontSize)
context
- context of current tokentok
- the current token for font size, from which to extract data for the leading commandtokNum
- the number of the font size tokennewFontSize
- the font size we're moving to.boolean inEmptyParagraph(com.lowagie.text.Paragraph iTPara)
iTPara
- the current paragraph
public java.lang.String getRoot()
IOutputCommand
getRoot
in interface IOutputCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |