com.java4less.rreport
Class RJTable

java.lang.Object
  |
  +--com.java4less.rreport.RJTable

public class RJTable
extends java.lang.Object

Creates two areas used to print the header and content of a JTable.


Field Summary
 java.awt.Font detailFont
           
 java.awt.Font headerFont
           
 
Constructor Summary
RJTable(javax.swing.JTable T, double x, double y, double Width, double HDRHeight, double LINHeight)
          Creates a RJTable.
 
Method Summary
 void createAreas()
          Creates the header and detail areas.
 RArea getDetailArea()
          Returns the created detail area for the JTable.
 RArea getHeaderArea()
          Returns the created header area for the JTable.
 void setHDRFrameStyle(RLineStyle s)
          style of the line used for the frame of the header.
 void setLINFrameStyle(RLineStyle s)
          style of the line used for the frame of the detail area.
 void setLINGridStyle(RLineStyle s)
          style of the line used for the grid of the table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headerFont

public java.awt.Font headerFont

detailFont

public java.awt.Font detailFont
Constructor Detail

RJTable

public RJTable(javax.swing.JTable T,
               double x,
               double y,
               double Width,
               double HDRHeight,
               double LINHeight)
Creates a RJTable. The paramaters mean: T: Jtable to be printed X: left margin. Y: top margin. Width: width of the table. HDRHeight: Height of the header area. LINHeight: Height of the detail area.
Method Detail

setHDRFrameStyle

public void setHDRFrameStyle(RLineStyle s)
style of the line used for the frame of the header.

setLINFrameStyle

public void setLINFrameStyle(RLineStyle s)
style of the line used for the frame of the detail area.

setLINGridStyle

public void setLINGridStyle(RLineStyle s)
style of the line used for the grid of the table.

createAreas

public void createAreas()
Creates the header and detail areas.

getHeaderArea

public RArea getHeaderArea()
Returns the created header area for the JTable.

getDetailArea

public RArea getDetailArea()
Returns the created detail area for the JTable.