org.pz.platypus.plugin.pdf.commands
Class PdfEolTreatment
java.lang.Object
org.pz.platypus.plugin.pdf.commands.PdfEolTreatment
- All Implemented Interfaces:
- OutputCommandable
public class PdfEolTreatment
- extends java.lang.Object
- implements OutputCommandable
End of line treatment command for PDF plugin
|
Field Summary |
private java.lang.String |
root
|
|
Method Summary |
java.lang.String |
getRoot()
get the root of the command. |
int |
process(OutputContextable 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(OutputContextable 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 OutputCommandable
- 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:
OutputCommandable
- get the root of the command. For example, fsize: in [fsize:12pt]
- Specified by:
getRoot in interface OutputCommandable
- Returns:
- the root as a string
Copyright © 2006-10 Pacific Data Works LLC. (platypus.pz.org)