|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--voji.report.ReportComponent | +--voji.report.ReportSpace
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 |
public double height
Constructor Detail |
public ReportSpace(double height)
ReportSpace
instance
height
- the height of this component,
that means the size of the spacepublic ReportSpace(double height, ReportComponent component)
ReportSpace
instance
containing the given sub component
height
- the height of this component,
that means the size of the spacecomponent
- a sub component to addMethod Detail |
public int getHeight(PageGraphics g)
getHeight
in class ReportComponent
g
- the graphical context where the height has to refer toReportComponent.getOwnHeight(PageGraphics)
,
ReportComponent.draw(PageGraphics)
public void draw(PageGraphics g)
draw
in class ReportComponent
g
- the graphical context where to draw toReportComponent.getHeight(PageGraphics)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |