Save This Page
Home » jasperreports-3.0.0-project » net.sf.jasperreports.engine.export » [javadoc | source]
net.sf.jasperreports.engine.export
public class: JRGridLayout [javadoc | source]
java.lang.Object
   net.sf.jasperreports.engine.export.JRGridLayout
Utility class used by grid exporters to create a grid for page layout.
Nested Class Summary:
protected static class  JRGridLayout.BoxKey   
Constructor:
 public JRGridLayout(ExporterNature nature,
    List elements,
    int width,
    int height,
    int offsetX,
    int offsetY) 
    Constructor.
    Parameters:
    elements - the elements that should arranged in a grid
    width - the width available for the grid
    height - the height available for the grid
    offsetX - horizontal element position offset
    offsetY - vertical element position offset
 public JRGridLayout(ExporterNature nature,
    List elements,
    int width,
    int height,
    int offsetX,
    int offsetY,
    CutsInfo xCuts) 
    Constructor.
    Parameters:
    elements - the elements that should arranged in a grid
    width - the width available for the grid
    height - the height available for the grid
    offsetX - horizontal element position offset
    offsetY - vertical element position offset
    xCuts - An optional list of pre-calculated X cuts.
 protected JRGridLayout(ExporterNature nature,
    ElementWrapper[] wrappers,
    int width,
    int height,
    int offsetX,
    int offsetY,
    String address) 
    Constructor.
    Parameters:
    wrappers - the element wrappers that should arranged in a grid
    width - the width available for the grid
    height - the height available for the grid
    offsetX - horizontal element position offset
    offsetY - vertical element position offset
    address - element address
Method from net.sf.jasperreports.engine.export.JRGridLayout Summary:
addXCuts,   calculateXCuts,   createCuts,   getGrid,   getMaxRowHeight,   getNextVirtualFrameIndex,   getRowHeight,   getRowHeight,   getWidth,   getXCuts,   getYCuts,   horizontallyMergeEmptyCells,   isOverlap,   layoutGrid,   setFrameCellsStyle,   setGridElement,   setGridElements,   setMargins
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.jasperreports.engine.export.JRGridLayout Detail:
 protected static  void addXCuts(ExporterNature nature,
    List elementsList,
    int elementOffsetX,
    CutsInfo xCuts) 
    This static method calculates the X cuts for a list of print elements and stores them in the list indicated by the xCuts parameter.
 public static CutsInfo calculateXCuts(ExporterNature nature,
    List pages,
    int startPageIndex,
    int endPageIndex,
    int width,
    int offsetX) 
    This static method calculates all the X cuts for a list of pages.
 protected  void createCuts(ElementWrapper[] wrappers,
    int elementOffsetX,
    int elementOffsetY,
    boolean createXCuts) 
 public JRExporterGridCell[][] getGrid() 
    Returns the constructed element grid.
 public static int getMaxRowHeight(JRExporterGridCell[] row) 
 protected int getNextVirtualFrameIndex() 
 public int getRowHeight(int row) 
 public static int getRowHeight(JRExporterGridCell[] row) 
 public int getWidth() 
    Returns the width available for the grid.
 public CutsInfo getXCuts() 
    Returns the list of cut points on the X axis for the grid.
 public CutsInfo getYCuts() 
    Returns the list of cut points on the Y axis for the grid.
 protected  void horizontallyMergeEmptyCells(int startRow,
    int startCol,
    int endRow,
    int endCol) 
 protected boolean isOverlap(int row1,
    int col1,
    int row2,
    int col2) 
 protected  void layoutGrid(ElementWrapper[] wrappers) 
    Constructs the element grid.
 protected  void setFrameCellsStyle(JRPrintFrame frame,
    int row1,
    int col1,
    int row2,
    int col2) 
 protected  void setGridElement(ElementWrapper wrapper,
    int row1,
    int col1,
    int row2,
    int col2) 
 protected  void setGridElements(ElementWrapper[] wrappers,
    int elementOffsetX,
    int elementOffsetY,
    int startRow,
    int startCol,
    int endRow,
    int endCol) 
 protected  void setMargins(ElementWrapper[] wrappers)