Package org.pentaho.reporting.engine.classic.core.util

Examples of org.pentaho.reporting.engine.classic.core.util.LongList


  private void updateBreaks()
  {
    final long[] horizontalBreaks = pageGrid.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    for (int i = 0; i < breakCount; i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= startOfLine)
      {
        // skip ..
        continue;
      }
      if (pos >= endOfLine)
      {
        break;
      }
      if (overflowX == false || (i < (breakCount - 1)))
      {
        pageLongList.add(pos);
      }
    }
    pageLongList.add(endOfLine);

    this.pagebreaks = pageLongList.toArray(this.pagebreaks);
    this.pagebreakCount = pageLongList.size();
  }
View Full Code Here


  protected void updateBreaksForLastLineAlignment()
  {
    final long[] horizontalBreaks = getPageGrid().getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    final long endOfLine = getEndOfLine();
    final long startOfLine = getStartOfLine();
    for (int i = 0; i < breakCount; i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= startOfLine)
      {
        // skip ..
        continue;
      }
      if (pos >= endOfLine)
      {
        break;
      }
      pageLongList.add(pos);
    }
    //pageLongList.add(endOfLine);
    pageLongList.add(Long.MAX_VALUE);

    final long[] pagebreaks = getPageBreaks();
    updatePageBreaks(pageLongList.toArray(pagebreaks), pageLongList.size());
  }
View Full Code Here

  private void updateBreaks()
  {
    final long[] horizontalBreaks = breaks.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    for (int i = 0; i < (breakCount - 1); i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= start)
      {
        // skip ..
        continue;
      }
      if (overflowX == false && pos >= end)
      {
        break;
      }

      pageLongList.add(pos);
    }
    pageLongList.add(end);

    this.pagebreaks = pageLongList.toArray(this.pagebreaks);
  }
View Full Code Here

  {
    final long[] horizontalBreaks = pageGrid.getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    if (pageLongList == null)
    {
      pageLongList = new LongList(breakCount);
    }
    else
    {
      pageLongList.clear();
    }
View Full Code Here

  }

  public TableRowImpl(final Border border)
  {
    this.border = border;
    this.preferredSizes = new LongList(10);
    this.validatedLeadingSize = 0;
    this.validatedTrailingSize = new LongList(10);
  }
View Full Code Here

    }

    this.definedWidth = definedWidth;
    this.border = border;
    this.autoGenerated = autoGenerated;
    this.cachedSize = new LongList(10);
  }
View Full Code Here

  protected void updateBreaksForLastLineAlignment()
  {
    final long[] horizontalBreaks = getPageGrid().getHorizontalBreaks();
    final int breakCount = horizontalBreaks.length;
    final LongList pageLongList = new LongList(breakCount);
    final long endOfLine = getEndOfLine();
    final long startOfLine = getStartOfLine();
    for (int i = 0; i < breakCount; i++)
    {
      final long pos = horizontalBreaks[i];
      if (pos <= startOfLine)
      {
        // skip ..
        continue;
      }
      if (pos >= endOfLine)
      {
        break;
      }
      pageLongList.add(pos);
    }
    //pageLongList.add(endOfLine);
    pageLongList.add(Long.MAX_VALUE);

    final long[] pagebreaks = getPageBreaks();
    updatePageBreaks(pageLongList.toArray(pagebreaks), pageLongList.size());
  }
View Full Code Here

  private HashMap<InstanceID, Point> cellIndex;
  private LongList gridHeights;

  public FastGridLayout()
  {
    gridHeights = new LongList(20);
    cells = new GenericObjectTable<GridCell>();
    cellIndex = new HashMap<InstanceID, Point>();
  }
View Full Code Here

  }

  public void endSection(final Band band,
                         final FastGridLayout gridLayout)
  {
    LongList cellHeights = gridLayout.getCellHeights();
    this.rowOffset += cellHeights.size();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.LongList

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.