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:
CardReport, ListReport

public abstract class Report
extends java.lang.Thread


Field Summary
protected  DCObject[] data
           
protected  ReportFieldDefinitions definitions
           
protected  ReportingDialog dialog
           
protected  Document document
           
protected  boolean keepOnRunning
           
protected  int labelBorderBottom
           
protected  java.awt.Color labelBorderColor
           
protected  int labelBorderLeft
           
protected  int labelBorderRight
           
protected  int labelBorderTop
           
protected  java.awt.Color labelColor
           
protected  java.awt.Color labelColorBg
           
protected  Font labelFont
           
protected  java.io.File target
           
protected  int textBorderBottom
           
protected  java.awt.Color textBorderColor
           
protected  int textBorderLeft
           
protected  int textBorderRight
           
protected  int textBorderTop
           
protected  java.awt.Color textColor
           
protected  java.awt.Color textColorBg
           
protected  Font textFont
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Report()
           
 
Method Summary
 void cancel()
           
 void compile()
           
abstract  void create()
           
protected  Font getFont(java.awt.Font f, java.awt.Color color)
           
protected  Cell getImageCell(java.net.URL url, ReportFieldDefinition definition, int width, int height, boolean inRow)
           
protected  Cell getLabelCell(java.lang.String label, ReportFieldDefinition definition)
           
protected  Cell getRatingCell(java.lang.Object value, ReportFieldDefinition definition)
           
protected  Table getTable(int columnCount)
           
protected  Cell getTextCell(java.lang.String text, ReportFieldDefinition definition)
           
protected  void initialize()
           
 void run()
           
protected  void setWidths(Table table, DCObject dco, ReportFieldDefinitions definitions)
           
 
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

textColor

protected final java.awt.Color textColor

textColorBg

protected final java.awt.Color textColorBg

textFont

protected final Font textFont

textBorderColor

protected final java.awt.Color textBorderColor

labelBorderColor

protected final java.awt.Color labelBorderColor

labelColor

protected final java.awt.Color labelColor

labelColorBg

protected final java.awt.Color labelColorBg

labelFont

protected final Font labelFont

textBorderBottom

protected final int textBorderBottom

textBorderTop

protected final int textBorderTop

textBorderLeft

protected final int textBorderLeft

textBorderRight

protected final int textBorderRight

labelBorderBottom

protected final int labelBorderBottom

labelBorderTop

protected final int labelBorderTop

labelBorderLeft

protected final int labelBorderLeft

labelBorderRight

protected final int labelBorderRight

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()

create

public abstract void create()
                     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

getLabelCell

protected Cell getLabelCell(java.lang.String label,
                            ReportFieldDefinition definition)
                     throws BadElementException
Throws:
BadElementException

getTextCell

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

getRatingCell

protected Cell getRatingCell(java.lang.Object value,
                             ReportFieldDefinition definition)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getImageCell

protected Cell getImageCell(java.net.URL url,
                            ReportFieldDefinition definition,
                            int width,
                            int height,
                            boolean inRow)
                     throws java.lang.Exception
Throws:
java.lang.Exception

setWidths

protected void setWidths(Table table,
                         DCObject dco,
                         ReportFieldDefinitions definitions)