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

Examples of org.pentaho.reporting.engine.classic.core.GroupBody


  }

  private Group getInnerMostGroup()
  {
    Group existingGroup = rootGroup;
    GroupBody gb = existingGroup.getBody();
    while (gb != null)
    {
      final int count = gb.getElementCount();
      GroupBody locatedBody = null;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
View Full Code Here


   * @return The no-data band.
   */
  public NoDataBand getNoDataBand()
  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getNoDataBand();
    }
View Full Code Here

  public int getGroupCount()
  {
    int result = 1; // we always have at least a default-group.

    Group existingGroup = rootGroup;
    GroupBody gb = existingGroup.getBody();
    while (gb != null)
    {
      final int count = gb.getElementCount();
      boolean found = false;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          result += 1;
          gb = existingGroup.getBody();
View Full Code Here

    }

    int result = 0; // we always have at least a default-group.

    Group existingGroup = rootGroup;
    GroupBody gb = existingGroup.getBody();
    while (gb != null)
    {
      final int count = gb.getElementCount();
      boolean found = false;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          result += 1;
          if (result == groupIndex)
View Full Code Here

      throw new IllegalStateException();
    }

    final CrosstabCellBody cellBody = createCellBody();

    GroupBody body = createColumnGroups(cellBody);
    body = createRowGroups(cellBody, body);
    body = createOtherGroups(body);

    return new CrosstabGroup(body);
  }
View Full Code Here

    return groupNamePrefix + rowDimension.getField();
  }

  private GroupBody createColumnGroups(final CrosstabCellBody cellBody)
  {
    GroupBody body = cellBody;
    for (int col = columns.size() - 1; col >= 0; col -= 1)
    {
      final CrosstabDimension column = columns.get(col);
      final CrosstabColumnGroup columnGroup = createColumnGroup(cellBody, body, column);
      body = new CrosstabColumnGroupBody(columnGroup);
View Full Code Here

  }

  private String[] computeColumns(final CrosstabGroup crosstabGroup)
  {
    final HashSet<String> list = new HashSet<String>();
    GroupBody body = crosstabGroup.getBody();
    while (body != null)
    {
      if (body instanceof SubGroupBody)
      {
        final SubGroupBody sgBody = (SubGroupBody) body;
View Full Code Here

    }
  }

  private void collectCrosstabFields(final CrosstabGroup crosstabGroup, final HashSet<String> list)
  {
    GroupBody body = crosstabGroup.getBody();
    while (body != null)
    {
      if (body instanceof CrosstabOtherGroupBody)
      {
        final CrosstabOtherGroupBody cogb = (CrosstabOtherGroupBody) body;
View Full Code Here

   * @return The item band.
   */
  public ItemBand getItemBand()
  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getItemBand();
    }
View Full Code Here

    final ArrayList<RelationalGroup> relationalGroups = new ArrayList<RelationalGroup>();
    Group group = definition.getRootGroup();
    while (group != null && group instanceof RelationalGroup)
    {
      relationalGroups.add((RelationalGroup) group);
      final GroupBody body = group.getBody();
      if (body instanceof SubGroupBody)
      {
        final SubGroupBody sgBody = (SubGroupBody) body;
        if (sgBody.getGroup() instanceof RelationalGroup)
        {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.GroupBody

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.