voji.report
Class ReportSpace

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

public class ReportSpace
extends ReportComponent

This report component just forces some space. Its sub components are drawn below this space.


Field Summary
 double height
          The height of this component, that means the size of the space
 
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
ReportSpace(double height)
          Constructs a new ReportSpace instance
ReportSpace(double height, ReportComponent component)
          Constructs a new ReportSpace instance containing the given sub component
 
Method Summary
 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
 

Field Detail

height

public double height
The height of this component, that means the size of the space

Constructor Detail

ReportSpace

public ReportSpace(double height)
Constructs a new ReportSpace instance

Parameters:
height - the height of this component, that means the size of the space

ReportSpace

public ReportSpace(double height,
                   ReportComponent component)
Constructs a new ReportSpace instance containing the given sub component

Parameters:
height - the height of this component, that means the size of the space
component - a sub component to add
Method Detail

getHeight

public int getHeight(PageGraphics g)
Returns the total height of this component

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

public void draw(PageGraphics g)
Draws this component

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