voji.report
Class ReportTable

java.lang.Object
  |
  +--voji.report.ReportComponent
        |
        +--voji.report.ReportTable

public class ReportTable
extends ReportComponent

This report component draws a table row


Constructor Summary
ReportTable(java.lang.String[] columns, double left, double[] widths, java.awt.Font font)
          Constructs a new ReportTable instance using the given strings and coordinates.
ReportTable(java.lang.String[] columns, double left, double[] widths, java.awt.Font font, int[] aligns, int textType, int frameType)
          Constructs a new ReportTable instance using the given strings and coordinates
ReportTable(java.lang.String[] columns, double left, double[] widths, java.awt.Font font, int align, int textType, int frameType)
          Constructs a new ReportTable instance using the given strings and coordinates.
 
Method Summary
protected  void init(java.lang.String[] columns, double left, double[] widths, java.awt.Font font, int[] aligns, int textType, int frameType)
          Initializes this ReportTable instance
 
Methods inherited from class voji.report.ReportComponent
add, draw, getHeight, getOwnHeight, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font,
                   int[] aligns,
                   int textType,
                   int frameType)
Constructs a new ReportTable instance using the given strings and coordinates

Parameters:
columns - the strings to draw in the columns
left - the left extension of the table
widths - an array containing the width of each column
font - the font to use
aligns - the alignment of each column
textType - the break type of the text
frameType - the type of the frame

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font,
                   int align,
                   int textType,
                   int frameType)
Constructs a new ReportTable instance using the given strings and coordinates. It uses the same alignment for each column.

Parameters:
columns - the strings to draw in the columns
left - the left extension of the table
widths - an array containing the width of each column
font - the font to use
textType - the break type of the text
frameType - the type of the frame

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font)
Constructs a new ReportTable instance using the given strings and coordinates. It uses a LEFT alignment, WORD break and a SINGLE frame type for each column.

Parameters:
columns - the strings to draw in the columns
left - the left extension of the table
widths - an array containing the width of each column
font - the font to use
Method Detail

init

protected void init(java.lang.String[] columns,
                    double left,
                    double[] widths,
                    java.awt.Font font,
                    int[] aligns,
                    int textType,
                    int frameType)
Initializes this ReportTable instance

Parameters:
columns - the strings to draw in the columns
left - the left extension of the table
widths - an array containing the width of each column
font - the font to use
aligns - the alignment of each column
textType - the break type of the text
frameType - the type of the frame