org.pz.platypus.plugin.pdf.commands
Class PdfEolTreatment

java.lang.Object
  extended by 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
           
 
Constructor Summary
PdfEolTreatment()
           
 
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
 

Field Detail

root

private java.lang.String root
Constructor Detail

PdfEolTreatment

public PdfEolTreatment()
Method Detail

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 data
tok - the token carrying the new treatment
tokNum - 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 token
pdata - 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