org.pz.platypus.plugin.pdf.commands
Class PdfPrintVariable
java.lang.Object
org.pz.platypus.plugin.pdf.commands.PdfPrintVariable
- All Implemented Interfaces:
- IOutputCommand
public class PdfPrintVariable
- extends java.lang.Object
- implements IOutputCommand
Outputs the user string or system variable that appears after the root.
- Author:
- alb
Field Summary |
private java.lang.String |
root
|
Method Summary |
java.lang.String |
getRoot()
get the root of the command. |
private void |
injectTextToken(GDD gdd,
int tokNum,
java.lang.String text,
Source source)
Injects a new text token into the TokenList, immediately after the present token. |
void |
issueErrorMessage(GDD gdd,
Source source,
java.lang.String macro)
|
int |
process(IOutputContext context,
Token tok,
int tokNum)
method for processing this command in the output plugin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private java.lang.String root
PdfPrintVariable
public PdfPrintVariable()
process
public int process(IOutputContext context,
Token tok,
int tokNum)
- Description copied from interface:
IOutputCommand
- method for processing this command in the output plugin.
- Specified by:
process
in interface IOutputCommand
- Parameters:
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 list
injectTextToken
private void injectTextToken(GDD gdd,
int tokNum,
java.lang.String text,
Source source)
- Injects a new text token into the TokenList, immediately after the present token.
- Parameters:
gdd
- the GDDtokNum
- token number of the current tokentext
- the text to insertsource
- the file and line # of the current token
issueErrorMessage
public void issueErrorMessage(GDD gdd,
Source source,
java.lang.String macro)
getRoot
public java.lang.String getRoot()
- Description copied from interface:
IOutputCommand
- get the root of the command. For example, fsize: in [fsize:12pt]
- Specified by:
getRoot
in interface IOutputCommand
- Returns:
- the root as a string
Copyright © 2008-10 Pacific Data Works LLC