ar.com.fdvs.dj.util
Class LayoutUtils

java.lang.Object
  extended by ar.com.fdvs.dj.util.LayoutUtils

public class LayoutUtils
extends java.lang.Object


Constructor Summary
LayoutUtils()
           
 
Method Summary
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 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, java.lang.String name, CustomExpression customExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtils

public LayoutUtils()
Method Detail

findVerticalOffset

public static int findVerticalOffset(net.sf.jasperreports.engine.design.JRDesignBand band)
Finds "Y" coordinate value in which more elements could be added in the band

Parameters:
band -
Returns:

copyBandElements

public 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)

Parameters:
destBand -
sourceBand -

moveBandsElemnts

public static void moveBandsElemnts(int yOffset,
                                    net.sf.jasperreports.engine.design.JRDesignBand band)
Moves the elements contained in "band" in the Y axis "yOffset"

Parameters:
intValue -
band -

registerCustomExpressionParameter

public static void registerCustomExpressionParameter(DynamicJasperDesign design,
                                                     java.lang.String name,
                                                     CustomExpression customExpression)

getJRDesignGroup

public static net.sf.jasperreports.engine.design.JRDesignGroup getJRDesignGroup(DynamicJasperDesign jd,
                                                                                LayoutManager layoutManager,
                                                                                DJGroup group)
Returns the JRDesignGroup for the DJGroup passed

Parameters:
jd -
layoutManager -
group -
Returns:

findParentJRGroup

public static net.sf.jasperreports.engine.design.JRDesignGroup findParentJRGroup(DJGroup djgroup,
                                                                                 DynamicReport dr,
                                                                                 DynamicJasperDesign djd,
                                                                                 LayoutManager layoutManager)

findChildDJGroup

public static DJGroup findChildDJGroup(DJGroup djgroup,
                                       DynamicReport dr)

getBandFromSection

public static net.sf.jasperreports.engine.design.JRDesignBand getBandFromSection(net.sf.jasperreports.engine.design.JRDesignSection section)
Returns the firs band from the section

Parameters:
section -
Returns:


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.