net.sf.dc.reporting
Class Report

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sf.dc.reporting.Report
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
HtmlReport, PdfReport, TextReport

public abstract class Report
extends java.lang.Thread

Since:
1.4
Version:
2.1
Author:
Robert Jan van der Waals

Field Summary
protected  DcObject[] data
           
protected  ReportFieldDefinitions definitions
           
protected  ReportingDialog dialog
           
protected  Document document
           
protected  boolean keepOnRunning
           
protected  java.io.File target
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Report()
           
 
Method Summary
protected abstract  void addFrontPage(Document document)
           
 void cancel()
           
 void compile()
           
abstract  void create()
           
protected  int getAlignment(ReportFieldDefinition definition)
           
protected  Font getFont(java.awt.Font f, java.awt.Color color)
           
protected  Table getTable(int columnCount)
           
protected  Cell getTextCell(java.lang.String text, ReportFieldDefinition definition)
           
protected  void initialize()
           
abstract  void initializeWriter(Document document, java.io.FileOutputStream out)
           
 void run()
           
protected abstract  void setTextCellDefaults(Cell cell, ReportFieldDefinition definition)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

definitions

protected ReportFieldDefinitions definitions

data

protected DcObject[] data

target

protected java.io.File target

dialog

protected ReportingDialog dialog

document

protected Document document

keepOnRunning

protected boolean keepOnRunning
Constructor Detail

Report

public Report()
Method Detail

run

public void run()

cancel

public void cancel()

compile

public void compile()

setTextCellDefaults

protected abstract void setTextCellDefaults(Cell cell,
                                            ReportFieldDefinition definition)

create

public abstract void create()
                     throws java.lang.Exception
Throws:
java.lang.Exception

initializeWriter

public abstract void initializeWriter(Document document,
                                      java.io.FileOutputStream out)
                               throws java.lang.Exception
Throws:
java.lang.Exception

initialize

protected void initialize()
                   throws java.lang.Exception
Throws:
java.lang.Exception

getFont

protected Font getFont(java.awt.Font f,
                       java.awt.Color color)

getTable

protected Table getTable(int columnCount)
                  throws BadElementException
Throws:
BadElementException

getAlignment

protected int getAlignment(ReportFieldDefinition definition)

getTextCell

protected Cell getTextCell(java.lang.String text,
                           ReportFieldDefinition definition)
                    throws BadElementException
Throws:
BadElementException

addFrontPage

protected abstract void addFrontPage(Document document)
                              throws java.lang.Exception
Throws:
java.lang.Exception