Examples of MinorAxisTableContext


Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    return true;
  }

  private void startTableSectionOrRow(final RenderBox box)
  {
    final MinorAxisTableContext tableContext = getTableContext();
    final long x = nodeContext.getParentX1();

    final long width;
    if (tableContext.isStructureValidated())
    {
      width = tableContext.getTable().getColumnModel().getCachedSize();
    }
    else
    {
      width = MinorAxisLayoutStepUtil.resolveNodeWidthOnStart(box, nodeContext, x);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    }
  }

  private long resolveTableWidthOnFinish(final RenderBox box)
  {
    final MinorAxisTableContext tableContext = getTableContext();
    if (tableContext.isStructureValidated())
    {
      return tableContext.getTable().getColumnModel().getCachedSize();
    }
    else
    {
      return MinorAxisLayoutStepUtil.resolveNodeWidthOnFinish(box, nodeContext, isStrictLegacyMode());
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    {
      startTableSectionOrRow(box);
      return true;
    }

    final MinorAxisTableContext tableContext = getTableContext();
    final TableCellRenderBox tableCellRenderBox = (TableCellRenderBox) box;

    // This is slightly different for table cells ...
    final int columnIndex = tableCellRenderBox.getColumnIndex();
    final TableColumnModel columnModel = tableContext.getColumnModel();

    // cell-size does not include border spacing
    final long startOfRowX = nodeContext.getParentX1();

    final long x = startOfRowX + columnModel.getCellPosition(columnIndex);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

      else
      {
        box.setCachedWidth(MinorAxisLayoutStepUtil.resolveNodeWidthOnFinish(box, nodeContext, isStrictLegacyMode()));

        final TableCellRenderBox cell = (TableCellRenderBox) box;
        final MinorAxisTableContext tableContext = getTableContext();
        final TableRenderBox table = tableContext.getTable();
        if (tableContext.isStructureValidated() == false)
        {
          table.getColumnModel().updateCellSize(cell.getColumnIndex(), cell.getColSpan(), box.getCachedWidth() - box.getInsets());
        }
        if (box.isVisible())
        {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

      if (isStrictLegacyMode())
      {
        throw new InvalidReportStateException("A report with a legacy mode of pre-4.0 cannot handle table layouts. " +
            "Migrate your report to at least version 4.0.");
      }
      tableContext = new MinorAxisTableContext((TableRenderBox) box, tableContext);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    return tableContext;
  }

  protected long computeCellWidth(final TableCellRenderBox tableCellRenderBox)
  {
    final MinorAxisTableContext tableContext = getTableContext();
    final int columnIndex = tableCellRenderBox.getColumnIndex();
    final TableColumnModel columnModel = tableContext.getColumnModel();

    final int colSpan = tableCellRenderBox.getColSpan();
    if (colSpan <= 0)
    {
      throw new InvalidReportStateException("A cell cannot have a col-span of zero or less");
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    {
      startTableSectionOrRow(box);
      return true;
    }

    final MinorAxisTableContext tableContext = getTableContext();
    final TableCellRenderBox tableCellRenderBox = (TableCellRenderBox) box;

    // This is slightly different for table cells ...
    final int columnIndex = tableCellRenderBox.getColumnIndex();
    final TableColumnModel columnModel = tableContext.getColumnModel();

    // cell-size does not include border spacing
    final long startOfRowX = nodeContext.getParentX1();

    final long x = startOfRowX + columnModel.getCellPosition(columnIndex);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

      else
      {
        box.setCachedWidth(MinorAxisLayoutStepUtil.resolveNodeWidthOnFinish(box, nodeContext, isStrictLegacyMode()));

        final TableCellRenderBox cell = (TableCellRenderBox) box;
        final MinorAxisTableContext tableContext = getTableContext();
        final TableRenderBox table = tableContext.getTable();
        if (tableContext.isStructureValidated() == false)
        {
          table.getColumnModel().updateCellSize(cell.getColumnIndex(), cell.getColSpan(), box.getCachedWidth() - box.getInsets());
        }
        if (box.isVisible())
        {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    return true;
  }

  private void startTableSectionOrRow(final RenderBox box)
  {
    final MinorAxisTableContext tableContext = getTableContext();
    final long x = nodeContext.getParentX1();

    final long width;
    if (tableContext.isStructureValidated())
    {
      width = tableContext.getTable().getColumnModel().getCachedSize();
    }
    else
    {
      width = MinorAxisLayoutStepUtil.resolveNodeWidthOnStart(box, nodeContext, x);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.util.MinorAxisTableContext

    }
  }

  private long resolveTableWidthOnFinish(final RenderBox box)
  {
    final MinorAxisTableContext tableContext = getTableContext();
    if (tableContext.isStructureValidated())
    {
      return tableContext.getTable().getColumnModel().getCachedSize();
    }
    else
    {
      return MinorAxisLayoutStepUtil.resolveNodeWidthOnFinish(box, nodeContext, isStrictLegacyMode());
    }
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.