org.pz.platypus.plugin.pdf
Class TextIndenter

java.lang.Object
  extended by org.pz.platypus.plugin.pdf.TextIndenter

public class TextIndenter
extends java.lang.Object

Calculates the indent that should be applied to a column of text.

Author:
alb

Field Summary
(package private)  PdfData pdd
           
(package private)  Token tok
           
 
Constructor Summary
TextIndenter(Token t, PdfData pd)
           
 
Method Summary
(package private)  float calculateColWidth()
          Gets the width of the current column, or if the current column has been set artificially to force a new page, then compute the width of column 0.
 float calculateIndent()
          Extracts the new indent amount from the token and verifies its value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tok

Token tok

pdd

PdfData pdd
Constructor Detail

TextIndenter

public TextIndenter(Token t,
                    PdfData pd)
Method Detail

calculateIndent

public float calculateIndent()
                      throws InvalidCommandParameterException
Extracts the new indent amount from the token and verifies its value.

Returns:
column width
Throws:
InvalidCommandParameterException - if indent value is not valid

calculateColWidth

float calculateColWidth()
Gets the width of the current column, or if the current column has been set artificially to force a new page, then compute the width of column 0.

Returns:
width of the current column


Copyright © 2008-10 Pacific Data Works LLC