voji.report
Class ReportTable

java.lang.Object
  |
  +--voji.report.ReportComponent
        |
        +--voji.report.ReportTable
All Implemented Interfaces:
javax.swing.SwingConstants

public class ReportTable
extends ReportComponent

This report component draws a table row


Field Summary
protected  ReportComponent content
          The component containing the content (i.e. the text components) of this table
 
Fields inherited from class voji.report.ReportComponent
position
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
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, int position)
          Constructs a new ReportTable instance using the given strings and coordinates It uses the same align and position for each column.
ReportTable(java.lang.String[] columns, double left, double[] widths, java.awt.Font font, int[] aligns, int textType, int frameType, int[] positions)
          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, int position)
          Constructs a new ReportTable instance using the given strings and coordinates It uses the same align and position for each column.
 
Method Summary
 ReportComponent getContent()
          Returns the component that contains the content of this table
protected  void init(java.lang.String[] columns, double left, double[] widths, java.awt.Font font, int[] aligns, int textType, int frameType, int[] positions)
          Initializes this ReportTable instance
 
Methods inherited from class voji.report.ReportComponent
add, add, draw, draw, getHeight, getOwnHeight, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected ReportComponent content
The component containing the content (i.e. the text components) of this table

Constructor Detail

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font,
                   int[] aligns,
                   int textType,
                   int frameType,
                   int[] positions)
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
positions - the positions of each column

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font,
                   int[] aligns,
                   int textType,
                   int frameType,
                   int position)
Constructs a new ReportTable instance using the given strings and coordinates It uses the same align and position 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
aligns - the alignment of each column
textType - the break type of the text
frameType - the type of the frame
position - the position of each column

ReportTable

public ReportTable(java.lang.String[] columns,
                   double left,
                   double[] widths,
                   java.awt.Font font,
                   int align,
                   int textType,
                   int frameType,
                   int position)
Constructs a new ReportTable instance using the given strings and coordinates It uses the same align and position 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
align - the alignment of each column
textType - the break type of the text
frameType - the type of the frame
position - the position of each column

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, a SINGLE frame type and a CENTER position 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,
                    int[] positions)
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
positions - an array containing the positions 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

getContent

public ReportComponent getContent()
Returns the component that contains the content of this table