RetainShape : The image will resize itself to fit in the area defined by
<reportElement> . If the image width changes to fit in this area, the height will
be proportionally changed so that the image retains it shape, and vice versa.
Attributes of the <image> Element
The <image> element contains other attributes that allow us to control how the
image will be displayed in the report. The following sections summarize most of
This attribute determines when the associated <imageExpression> will be
evaluated. The valid values for this attribute are listed below:
Band : The expression is evaluated when the containing band has rendered all
Column : The expression is evaluated when the end of the current column
Group : The expression is evaluated when the group, indicated by the
evaluationGroup attribute, changes.
Now : The expression is evaluated when filling the containing band . This is the
Page : The expression is evaluated when the end of the current page
Report : The expression is evaluated when the end of the report is reached.
When evaluationTime is Group , this attribute determines the group name to be
used to evaluate the associated <imageExpresson> . The value for this attribute must
match the name of the group we would like to use as the evaluationGroup .
The hAlign attribute indicates the horizontal alignment of the image. The valid
values for this attribute are listed below:
Center : The image will be centered.
Left : The image will be left-aligned. This is the default value.
Right : The image will be right-aligned.