Java Reference
In-Depth Information
Each of these elements contains a single <band> element as its only sub-element.
The <band> element can contain zero or more <line> , <rectangle> , <ellipse> ,
<image> , <staticText> , <textField> , <subReport> , or <elementGroup>
sub-elements. Except for <elementGroup> , each of these elements must contain a
single <reportElement> as its first element. <reportElement> determines how data
is laid out for that particular element. In this section, we will see how the different
attributes of <reportElement> affect the way data in its parent element is laid out.
The following table summarizes all the attributes of <reportElement> :
Attribute
Description
Valid Values
x
Specifies the x coordinate of the
element within the band.
An integer value indicating the
x coordinate of the element in
pixels. This attribute is required.
y
Specifies the y coordinate of the
element within the band.
An integer value indicating the
y coordinate of the element in
pixels. This attribute is required.
width
Specifies the width of
the element.
An integer value indicating the
element width in pixels. This
attribute is required.
height
Specifies the height of
the element.
An integer value indicating the
element height in pixels. This
attribute is required.
key
Uniquely identifies the element
within the band; does not affect
layout.
A unique string used to identify
the containing element.
stretchType
Specifies how the element
stretches when the containing
band stretches.
NoStretch (default): The
element will not stretch.
RelativeToTallestObject:
The element will stretch to
accommodate the tallest object in
its group.
RelativeToBand : The element
will stretch to fit the band's height.
positionType
Specifies the element's position
when the band stretches.
Float: The element will move
depending on the size of the
surrounding elements.
FixRelativeToTop (default):
The element will maintain a fixed
position relative to the band's top.
FixRelativeToBottom :
The element will maintain a
fixed position relative to the
band's bottom.
 
Search WWH ::




Custom Search