org.pz.platypus.plugin.pdf.commands
Class PdfColumnWidth
java.lang.Object
org.pz.platypus.plugin.pdf.commands.PdfColumnWidth
- All Implemented Interfaces:
- OutputCommandable
public class PdfColumnWidth
- extends java.lang.Object
- implements OutputCommandable
Change the width of columns on a page. This command specifies a width that is applied to
all the columns on the page.
TODO: make sure that at the new column size the existing indents are still valid. If they're
not, then reset them so that they occupy the same fraction of the column as they presently do.
|
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)
method for processing this command in the output plugin. |
(package private) void |
showErrorMsg(Token tok,
PdfData pdd,
float width)
Show error message, giving location in Platypus input file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private java.lang.String root
PdfColumnWidth
public PdfColumnWidth()
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
showErrorMsg
void showErrorMsg(Token tok,
PdfData pdd,
float width)
- Show error message, giving location in Platypus input file
- Parameters:
tok - contains the location datapdd - contains the location of the logger and literals filewidth - which specifies whether column is specified as too wide or too narrow
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)