toolbox.pdf
Class PdfHelper

Package class diagram package PdfHelper
java.lang.Object
  extended by toolbox.pdf.PdfHelper

public class PdfHelper
extends java.lang.Object

Convenience methods when creating PDF documents


Constructor Summary
PdfHelper()
           
 
Method Summary
static int getAlignment(java.lang.String align)
          Returns the correct alingment field value based on the given String
static java.lang.String getPhraseContent(Column col, java.lang.Object val)
          Returns a content String in the format specified by the given column description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfHelper

public PdfHelper()
Method Detail

getPhraseContent

public static java.lang.String getPhraseContent(Column col,
                                                java.lang.Object val)
Returns a content String in the format specified by the given column description.

Parameters:
col - Column description
val - Value to format and place in the phrase that will be returned.
Returns:
Phrase containing formatted value.

getAlignment

public static int getAlignment(java.lang.String align)
Returns the correct alingment field value based on the given String

Parameters:
align - String describing alignment.
Returns:
int containing the constant for the described alignment.