jasperreport生成pdf_jasperreport 导出excel_jasperreport json(51)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

affected be stretch.

A graphic element can respond to the modification of the report section layout in three ways:

_ Won't stretch: The graphic element preserves its original specified height

(strechType="NoStretch").

_ Stretching relative to the parent band height: The graphic element will adapt its height to match

the new height of the report section it placed on, which has been affected by stretch

(stretchType="RelativeToBandHeight").

_ Stretching relative to the tallest element in group: You have the possibility to group the elements

of a report section in multiple imbricate groups, if you like. The only reason you might have for

grouping your report elements is to be able to customize their stretch behavior. Details about how

to group elements are supplied in the section 8.4 Element Groups that will follow. Graphic

The JasperReports Ultimate Guide

Page 57

elements can be made to automatically adapt their height to fit the amount of stretch suffered by

the tallest element in the group that they are part of

(stretchType="RelativeToTallestObject").

Border Thickness

Unlike text elements, the graphic elements always have a border. You can control the type and

thickness of it using the pen attribute. Remember that the color of the border comes from the

forecolor attribute presented when describing the <reportElement> tag, in a previous chapter.

Here are all the possible types for a graphic element border:

_ No border: The graphic element will not display any border around it (pen="None").


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-51.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...