voji.report
Class ReportList

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

public class ReportList
extends ReportComponent

This report component draws its sub components vertically one under another.


Field Summary
 
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
ReportList()
          Constructs a new empty ReportList instance
 
Method Summary
protected  void draw(PageGraphics g)
          Draws this component.
 int getHeight(PageGraphics g)
          Returns the total height of this component.
 
Methods inherited from class voji.report.ReportComponent
add, add, draw, getOwnHeight, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportList

public ReportList()
Constructs a new empty ReportList instance

Method Detail

getHeight

public int getHeight(PageGraphics g)
Returns the total height of this component. That means the sum of the sub components' heights, or this component's own height - which one is bigger.

Overrides:
getHeight in class ReportComponent
Parameters:
g - the graphical context where the height has to refer to
See Also:
ReportComponent.getOwnHeight(PageGraphics), ReportComponent.draw(PageGraphics)

draw

protected void draw(PageGraphics g)
Draws this component. This method draws all sub components one under another.

Overrides:
draw in class ReportComponent
Parameters:
g - the graphical context where to draw to
See Also:
getHeight(PageGraphics)