org.pz.platypus.plugin.pdf.commands
Class PdfEolTreatment
java.lang.Object
org.pz.platypus.plugin.pdf.commands.PdfEolTreatment
- All Implemented Interfaces:
- IOutputCommand
public class PdfEolTreatment
- extends java.lang.Object
- implements IOutputCommand
End of line treatment command for PDF plugin
- Author:
- alb
Field Summary |
private java.lang.String |
root
|
Method Summary |
java.lang.String |
getRoot()
get the root of the command. |
int |
process(IOutputContext context,
Token tok,
int tokNum)
Validate the specified EOL treatment and set it in pdfData if the setting is valid |
private void |
showError(Token tok,
PdfData pdata)
Show an error message in case a wrong value is specified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private java.lang.String root
PdfEolTreatment
public PdfEolTreatment()
process
public int process(IOutputContext context,
Token tok,
int tokNum)
- Validate the specified EOL treatment and set it in pdfData if the setting is valid
- Specified by:
process
in interface IOutputCommand
- Parameters:
context
- the PDF datatok
- the token carrying the new treatmenttokNum
- token number
showError
private void showError(Token tok,
PdfData pdata)
- Show an error message in case a wrong value is specified
- Parameters:
tok
- the original eol treatment tokenpdata
- contains PDF state data
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