Package org.pentaho.reporting.engine.classic.core.layout.model.table.columns

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.columns.TableColumn


    expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));

    TableColumn[] columns = columnModel.getColumns();
    for (int i = 0; i < columns.length; i += 1)
    {
      TableColumn c = columnModel.getColumn(i);
      assertColumnsEqual(expected.get(i), c);
    }
  }
View Full Code Here


    assertEquals(expected.getCachedSize(4), result.getCachedSize(4));
  }

  private TableColumn createTableColumn(long effectiveSize, long size1, long size2, long size3, long size4)
  {
    TableColumn tc = new TableColumn(Border.EMPTY_BORDER, RenderLength.AUTO, false);
    tc.setEffectiveSize(effectiveSize);
    tc.setCachedSize(1, size1);
    tc.setCachedSize(2, size2);
    tc.setCachedSize(3, size3);
    tc.setCachedSize(4, size4);
    return tc;
  }
View Full Code Here

    final Border border = node.getBoxDefinition().getBorder();
    final RenderLength length = node.getBoxDefinition().getMinimumWidth();

    if (currentColumnGroup != null)
    {
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
    }
    else
    {
      final TableColumnGroup currentColumnGroup = new TableColumnGroup(BoxDefinition.EMPTY.getBorder());
      currentColumnGroup.addColumn(new TableColumn(border, length, false));
      currentTable.columnModel.addColumnGroup(currentColumnGroup);
    }
  }
View Full Code Here

      return;
    }

    while (currentColumnGroup.getColumnCount() < box.getColSpan())
    {
      currentColumnGroup.addColumn(new TableColumn(currentColumnGroup.getBorder(), RenderLength.AUTO, false));
    }

    currentTable.columnModel.addColumnGroup(currentColumnGroup);
    currentColumnGroup = null;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.table.columns.TableColumn

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.