本文整理汇总了Java中net.sf.jasperreports.engine.design.JasperDesign.getRightMargin方法的典型用法代码示例。如果您正苦于以下问题:Java JasperDesign.getRightMargin方法的具体用法?Java JasperDesign.getRightMargin怎么用?Java JasperDesign.getRightMargin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.design.JasperDesign
的用法示例。
在下文中一共展示了JasperDesign.getRightMargin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ReportDesignBO
import net.sf.jasperreports.engine.design.JasperDesign; //导入方法依赖的package包/类
public ReportDesignBO(JasperDesign jasperDesign, GridReportVO gridReportVO) {
super();
this.jasperDesign = jasperDesign;
this.gridReportVO = gridReportVO;
if (gridReportVO.getTotalWidth() + jasperDesign.getLeftMargin() + jasperDesign.getRightMargin() > jasperDesign
.getPageWidth())
this.jasperDesign.setPageWidth(gridReportVO.getTotalWidth() + jasperDesign.getLeftMargin()
+ jasperDesign.getRightMargin());
this.pageWidth = jasperDesign.getPageWidth() - jasperDesign.getLeftMargin()
- jasperDesign.getRightMargin();
}