jdbreport.model.io.itext5.pdf
Class ITextWriter

java.lang.Object
  extended by jdbreport.model.io.itext5.pdf.ITextWriter
All Implemented Interfaces:
ReportWriter, ResourceWriter
Direct Known Subclasses:
PdfWriter

public abstract class ITextWriter
extends Object
implements ReportWriter

Version:
2.0 14.04.2011
Author:
Andrey Kholmanskih

Constructor Summary
ITextWriter()
           
 
Method Summary
protected  ReportFontMapper getFontMapper()
           
protected  JTextComponent getHTMLReportRenderer()
           
static void initFontMapper()
           
protected  int roundAngle(int angle)
           
 void save(File file, ReportBook reportBook)
           
 void save(Writer writer, ReportBook reportBook)
           
protected  int toPdfHAlignment(int horizontalAlignment)
           
protected  int toPdfVAlignment(int verticalAlignment)
           
 String write(String fileName, Object resource)
          Write of resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jdbreport.model.io.ReportWriter
save
 

Constructor Detail

ITextWriter

public ITextWriter()
Method Detail

initFontMapper

public static void initFontMapper()
Since:
2.0

getFontMapper

protected ReportFontMapper getFontMapper()

save

public void save(Writer writer,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

save

public void save(File file,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

toPdfHAlignment

protected int toPdfHAlignment(int horizontalAlignment)

toPdfVAlignment

protected int toPdfVAlignment(int verticalAlignment)

getHTMLReportRenderer

protected JTextComponent getHTMLReportRenderer()

roundAngle

protected int roundAngle(int angle)

write

public String write(String fileName,
                    Object resource)
             throws SaveReportException
Description copied from interface: ResourceWriter
Write of resources

Specified by:
write in interface ResourceWriter
Returns:
the filename
Throws:
SaveReportException