org.pz.platypus.plugin.pdf.commands
Class PdfRestoreFormat
java.lang.Object
org.pz.platypus.plugin.pdf.commands.PdfRestoreFormat
- All Implemented Interfaces:
- OutputCommandable
public class PdfRestoreFormat
- extends java.lang.Object
- implements OutputCommandable
Restore the previous format from the format stack (thereby, popping it)
|
Field Summary |
private java.lang.String |
root
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private java.lang.String root
PdfRestoreFormat
public PdfRestoreFormat()
process
public int process(OutputContextable context,
Token tok,
int tokNum)
- Description copied from interface:
OutputCommandable
- method for processing this command in the output plugin.
- Specified by:
process in interface OutputCommandable
- 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
restore
public static void restore(PdfData pdd,
Source source)
- Restore the current format. This is called so often, it's made static here.
- Parameters:
pdd - the PDF datasource - file and line # where this action took place
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)