if (table == null)// || list.getContents() == null)
{
return null;
}
JRBasePrintFrame frame = new JRBasePrintFrame(
reportConverter.getDefaultStyleProvider());
reportConverter.copyBaseAttributes(element, frame);
TableUtil tableManager =
new TableUtil(
(StandardTable)table,
(JasperDesign)reportConverter.getReport()
);
Map<Cell, Rectangle> cellBounds = tableManager.getCellBounds();
for (Map.Entry pair : cellBounds.entrySet())
{
Cell cell = (Cell)pair.getKey();
Rectangle rectangle = (Rectangle)pair.getValue();
JRBasePrintFrame cellFrame =
new JRBasePrintFrame(
reportConverter.getDefaultStyleProvider()
);
cellFrame.setX((int)rectangle.getX());
cellFrame.setY((int)rectangle.getY());
cellFrame.setWidth((int)rectangle.getWidth());
cellFrame.setHeight((int)rectangle.getHeight());
cellFrame.setStyle(reportConverter.resolveStyle(cell));
if (cell.getLineBox() != null)
{
cellFrame.copyBox(cell.getLineBox());
}
List children = cell.getChildren();
if (children != null && children.size() > 0)
{