Examples of JRFillCrosstabRowGroup


Examples of net.sf.jasperreports.crosstabs.fill.JRFillCrosstabRowGroup

    JRCrosstabRowGroup[] groups = crosstab.getRowGroups();
    rowGroups = new JRFillCrosstabRowGroup[groups.length];
    rowGroupsMap = new HashMap();
    for (int i = 0; i < groups.length; ++i)
    {
      JRFillCrosstabRowGroup group = factory.getCrosstabRowGroup(groups[i]);
      group.getFillHeader().setVerticalPositionType(groups[i].getPositionValue());

      rowGroups[i] = group;
      rowGroupsMap.put(group.getName(), Integer.valueOf(i));
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.crosstabs.fill.JRFillCrosstabRowGroup

  {
    boolean hasOrderByExpression = false;
    List rowBuckets = new ArrayList(rowGroups.length);
    for (int i = 0; i < rowGroups.length; ++i)
    {
      JRFillCrosstabRowGroup group = rowGroups[i];
      rowBuckets.add(createServiceBucket(group, evaluation));
      hasOrderByExpression |= group.getBucket().getOrderByExpression() != null;
    }

    List colBuckets = new ArrayList(columnGroups.length);
    for (int i = 0; i < columnGroups.length; ++i)
    {
      JRFillCrosstabColumnGroup group = columnGroups[i];
      colBuckets.add(createServiceBucket(group, evaluation));
      hasOrderByExpression |= group.getBucket().getOrderByExpression() != null;
    }

    percentage = false;
    List measureList = new ArrayList(measures.length);
    for (int i = 0; i < measures.length; ++i)
View Full Code Here

Examples of net.sf.jasperreports.crosstabs.fill.JRFillCrosstabRowGroup

      return overflow;
    }

    private boolean prepareRowHeader(int rowGroup, HeaderCell cell, int vSpan, int availableHeight) throws JRException
    {
      JRFillCrosstabRowGroup group = rowGroups[rowGroup];
      JRFillCellContents contents = cell.isTotal() ? group.getFillTotalHeader() : group.getFillHeader();

      if (contents.getWidth() <= 0 || contents.getHeight() <= 0)
      {
        return false;
      }
     
      int spanHeight = 0;
      int headerY = ((Integer) rowYs.get(rowIdx - vSpan + 1)).intValue();
      if (vSpan > 1)
      {
        spanHeight += ((Integer) rowYs.get(rowIdx)).intValue() - headerY;
      }
      int rowHeight = spanHeight + preparedRowHeight;
     
      boolean stretchContents = group.getPositionValue() == CrosstabRowPositionEnum.STRETCH;
      int contentsHeight = stretchContents ? rowHeight : contents.getHeight();
     
      boolean headerOverflow = availableHeight <  headerY + contentsHeight || rowHeight < contents.getHeight();
     
      if (!headerOverflow)
View Full Code Here

Examples of net.sf.jasperreports.crosstabs.fill.JRFillCrosstabRowGroup

      int lastHeaderY = ((Integer) rowYs.get(rowIdx)).intValue();
      int headerHeight = lastHeaderY - headerY;
      int nextToLastHeaderY = ((Integer) rowYs.get(rowIdx - 1)).intValue();
      int stretchHeight = nextToLastHeaderY - headerY;
     
      JRFillCrosstabRowGroup group = rowGroups[rowGroup];
      JRFillCellContents contents = cell.isTotal() ? group.getFillTotalHeader() : group.getFillHeader();
     
      boolean stretchContents = group.getPositionValue() == CrosstabRowPositionEnum.STRETCH;
      int contentsHeight = stretchContents ? headerHeight : contents.getHeight();
     
      boolean headerOverflow = availableHeight < headerY + contentsHeight || headerHeight < contents.getHeight();
      if (!headerOverflow)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.