Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRPrintFrame


      }
    }
   
    if (element instanceof JRPrintFrame)
    {
      JRPrintFrame frame = (JRPrintFrame) element;
      cacheInContext(frame.getElements());
    }
  }
View Full Code Here


      JRPrintElement element = (JRPrintElement) it.next();
      visitor.visitElement(element);
     
      if (element instanceof JRPrintFrame)
      {
        JRPrintFrame frame = (JRPrintFrame) element;
        traverseDeepElements(visitor, frame.getElements());
      }
    }
  }
View Full Code Here

          it.set(transformed);
        }
      }
      else if (element instanceof JRPrintFrame)
      {
        JRPrintFrame frame = (JRPrintFrame) element;
        transformElements(context, transformerExportKey, frame.getElements());
      }
    }
   
  }
View Full Code Here

          if (!willOverflow)
          {
            whenNoDataCell.setX(0);
            whenNoDataCell.setY(0);
           
            JRPrintFrame printCell = whenNoDataCell.fill();
            List noDataRow = new ArrayList(1);
            noDataRow.add(printCell);
            addPrintRow(noDataRow);
           
            yOffset += whenNoDataCell.getPrintHeight();
View Full Code Here

          linksMap.put(link, element);
        }

        if (element instanceof JRPrintFrame)
        {
          JRPrintFrame frame = (JRPrintFrame) element;
          int frameOffsetX = offsetX + frame.getX() + frame.getLineBox().getLeftPadding().intValue();
          int frameOffsetY = offsetY + frame.getY() + frame.getLineBox().getTopPadding().intValue();
          createHyperlinks(frame.getElements(), frameOffsetX, frameOffsetY);
        }
      }
    }
  }
View Full Code Here

    Integer[] elementIndexes = imageIndex.getAddressArray();
    Object element = page.getElements().get(elementIndexes[0].intValue());

    for (int i = 1; i < elementIndexes.length; ++i)
    {
      JRPrintFrame frame = (JRPrintFrame) element;
      element = frame.getElements().get(elementIndexes[i].intValue());
    }

    return (JRPrintImage) element;
  }
View Full Code Here

          xCuts.addXCuts(element, elementOffsetX);
        }

        yCuts.addYCuts(element, elementOffsetY);
       
        JRPrintFrame frame = element instanceof JRPrintFrame ? (JRPrintFrame)element : null;
        if (frame != null && nature.isDeep(frame))
        {
          createCuts(
            wrapper.getWrappers(),
            element.getX() + elementOffsetX + frame.getLineBox().getLeftPadding().intValue(),
            element.getY() + elementOffsetY + frame.getLineBox().getTopPadding().intValue(),
            createXCuts
            );
        }
      }
    }
View Full Code Here

        int col2 = xCuts.indexOfCut(x + element.getWidth());
        int row2 = yCuts.indexOfCut(y + element.getHeight());

        if (!isOverlap(row1, col1, row2, col2))
        {
          JRPrintFrame frame = element instanceof JRPrintFrame ? (JRPrintFrame)element : null;
          if (frame != null && nature.isDeep(frame))
          {
            setGridElements(
              wrapper.getWrappers(),
              x + frame.getLineBox().getLeftPadding().intValue(),
              y + frame.getLineBox().getTopPadding().intValue(),
              row1, col1, row2, col2
              );
           
            setFrameCellsStyle(frame, row1, col1, row2, col2);
          }
View Full Code Here

  {
    yCuts.addUsage(row1, CutsInfo.USAGE_NOT_EMPTY);
    xCuts.addUsage(col1, CutsInfo.USAGE_NOT_EMPTY);

    JRPrintElement element = wrapper.getElement();
    JRPrintFrame frame = element instanceof JRPrintFrame ? (JRPrintFrame) element : null;

    int rowSpan = nature.isSpanCells() ? row2 - row1 : 1;
    int colSpan = nature.isSpanCells() ? col2 - col1 : 1;

    JRExporterGridCell gridCell =
      new ElementGridCell(
        wrapper,
        element.getWidth(),
        element.getHeight(),
        colSpan,
        rowSpan
        );

    if (nature.isSpanCells())
    {
      OccupiedGridCell occupiedGridCell = new OccupiedGridCell(gridCell);
      for (int row = row1; row < row2; row++)
      {
        for (int col = col1; col < col2; col++)
        {
          grid[row][col] = occupiedGridCell;
        }
        yCuts.addUsage(row, CutsInfo.USAGE_SPANNED);
      }

      for (int col = col1; col < col2; col++)
      {
        xCuts.addUsage(col, CutsInfo.USAGE_SPANNED);
      }
    }

    if (col2 - col1 != 0 && row2 - row1 != 0)
    {
      if (frame != null)//FIXMEODT if deep, does this make sense?
      {
        gridCell.setLayout(
          new JRGridLayout(
            nature,
            wrapper.getWrappers(),
            frame.getWidth(),
            frame.getHeight(),
            0, //offsetX
            0, //offsetY
            wrapper.getAddress()
            )
          );
View Full Code Here

      {
        xCuts.addXCuts(element, elementOffsetX);
       
        if (element instanceof JRPrintFrame)
        {
          JRPrintFrame frame = (JRPrintFrame) element;
          addXCuts(
            nature,
            frame.getElements(),
            element.getX() + elementOffsetX + frame.getLineBox().getLeftPadding().intValue(),
            xCuts
            );
        }
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRPrintFrame

Copyright © 2018 www.massapicom. 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.