public class LayoutUtils extends Object
Constructor and Description |
---|
LayoutUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
convertBorderToPen(Border border,
net.sf.jasperreports.engine.JRPen pen) |
static void |
copyBandElements(net.sf.jasperreports.engine.design.JRDesignBand destBand,
net.sf.jasperreports.engine.JRBand sourceBand)
Copy bands elements from source to dest band, also makes sure copied elements
are placed below existing ones (Y offset is calculated)
|
static DJGroup |
findChildDJGroup(DJGroup djgroup,
DynamicReport dr) |
static net.sf.jasperreports.engine.design.JRDesignGroup |
findParentJRGroup(DJGroup djgroup,
DynamicReport dr,
DynamicJasperDesign djd,
LayoutManager layoutManager) |
static int |
findVerticalOffset(net.sf.jasperreports.engine.design.JRDesignBand band)
Finds "Y" coordinate value in which more elements could be added in the band
|
static net.sf.jasperreports.engine.design.JRDesignBand |
getBandFromSection(net.sf.jasperreports.engine.design.JRDesignSection section)
Returns the firs band from the section
|
static net.sf.jasperreports.engine.design.JRDesignGroup |
getJRDesignGroup(DynamicJasperDesign jd,
LayoutManager layoutManager,
DJGroup group)
Returns the JRDesignGroup for the DJGroup passed
|
static net.sf.jasperreports.engine.type.SplitTypeEnum |
getSplitTypeFromBoolean(boolean allowsplit)
FIXME there are 3 types of SplitTypeEnum, we are not using the "stretch"
|
static void |
moveBandsElemnts(int yOffset,
net.sf.jasperreports.engine.design.JRDesignBand band)
Moves the elements contained in "band" in the Y axis "yOffset"
|
static void |
registerCustomExpressionParameter(DynamicJasperDesign design,
String name,
CustomExpression customExpression) |
public static int findVerticalOffset(net.sf.jasperreports.engine.design.JRDesignBand band)
band
- public static void copyBandElements(net.sf.jasperreports.engine.design.JRDesignBand destBand, net.sf.jasperreports.engine.JRBand sourceBand)
destBand
- sourceBand
- public static void moveBandsElemnts(int yOffset, net.sf.jasperreports.engine.design.JRDesignBand band)
intValue
- band
- public static void registerCustomExpressionParameter(DynamicJasperDesign design, String name, CustomExpression customExpression)
public static net.sf.jasperreports.engine.design.JRDesignGroup getJRDesignGroup(DynamicJasperDesign jd, LayoutManager layoutManager, DJGroup group)
jd
- layoutManager
- group
- public static net.sf.jasperreports.engine.design.JRDesignGroup findParentJRGroup(DJGroup djgroup, DynamicReport dr, DynamicJasperDesign djd, LayoutManager layoutManager)
public static DJGroup findChildDJGroup(DJGroup djgroup, DynamicReport dr)
public static net.sf.jasperreports.engine.design.JRDesignBand getBandFromSection(net.sf.jasperreports.engine.design.JRDesignSection section)
section
- public static net.sf.jasperreports.engine.type.SplitTypeEnum getSplitTypeFromBoolean(boolean allowsplit)
allowsplit
- public static void convertBorderToPen(Border border, net.sf.jasperreports.engine.JRPen pen)
Copyright © 2006–2015 FDV Solutions. All rights reserved.