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

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


    {
      return 0;
    }
    if (parent instanceof RootLevelBand && parent instanceof Section)
    {
      final RootLevelBand re = (RootLevelBand) parent;
      final Section se = (Section) parent;
      return re.getSubReportCount() + se.getElementCount();
    }
    if (parent instanceof Section)
    {
      final Section br = (Section) parent;
      return br.getElementCount();
View Full Code Here


    }

    final Section br = (Section) parent;
    if (parent instanceof RootLevelBand && child instanceof SubReport)
    {
      final RootLevelBand re = (RootLevelBand) parent;
      final int subreportIndexOf = ModelUtility.findSubreportIndexOf(re, (SubReport) child);
      if (subreportIndexOf != -1)
      {
        return br.getElementCount() + subreportIndexOf;
      }
View Full Code Here

    subType = determineSubType(section);
   
    if (section instanceof RootLevelBand)
    {
      final RootLevelBand rlb = (RootLevelBand) section;
      final SubReport[] subReports = rlb.getSubReports();
      for (int i = 0; i < subReports.length; i++)
      {
        final SubReport subReport = subReports[i];
        rootElementIds.add(subReport.getObjectID());
      }
View Full Code Here

    if (parentSection instanceof RootLevelBand == false)
    {
      return false;
    }

    final RootLevelBand rlb = (RootLevelBand) parentSection;
    for (int i = 0; i < rlb.getSubReportCount(); i += 1)
    {
      if (rlb.getSubReport(i) == reportDefinition)
      {
        return true;
      }
    }
    return false;
View Full Code Here

      final Section reportElement = rc.getRendererRoot().getElement();
      final DocumentContextSelectionModel selectionModel = getActiveContext().getSelectionModel();
      selectRecursively(selectionModel, reportElement);
      if (reportElement instanceof RootLevelBand)
      {
        final RootLevelBand re = (RootLevelBand) reportElement;
        final int count = re.getSubReportCount();
        for (int i = 0; i < count; i++)
        {
          selectionModel.add(re.getSubReport(i));
        }
      }
    }
  }
View Full Code Here

    if (position == -1)
    {
      if (insertElement instanceof SubReport && parent instanceof RootLevelBand)
      {
        final SubReport subReport = (SubReport) insertElement;
        final RootLevelBand arb = (RootLevelBand) parent;
        final int subreportPosition = ModelUtility.findSubreportIndexOf(arb, subReport);
        if (subreportPosition == -1)
        {
          throw new IllegalStateException
              ("Assert Failed: A newly inserted section must have a position within its parent.");
        }
        else
        {
          return new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport);
        }
      }
      else
      {
        throw new IllegalStateException("A newly inserted section must have a position within its parent.");
View Full Code Here

        continue;
      }

      if (element instanceof RootLevelBand)
      {
        final RootLevelBand rlb = (RootLevelBand) element;
        final SubReport[] subReports = rlb.getSubReports();
        result.addAll(Arrays.asList(subReports));
      }

      if (element instanceof Section)
      {
View Full Code Here

      }
    }

    if (sectionReportElement instanceof RootLevelBand)
    {
      final RootLevelBand rlb = (RootLevelBand) sectionReportElement;
      for (int i = 0; i < rlb.getSubReportCount(); i += 1)
      {
        final SubReport reportElement = rlb.getSubReport(i);
        final InstanceID id = reportElement.getObjectID();
        elementsById.put(id, reportElement);
        collectDesignTimeElements(reportElement);
      }
    }
View Full Code Here

      elementsById.put(section.getObjectID(), section);
      collectElements(section);

      if (section instanceof RootLevelBand)
      {
        final RootLevelBand rl = (RootLevelBand) section;
        final int count = rl.getSubReportCount();
        for (int i = 0; i < count; i++)
        {
          final SubReport report = rl.getSubReport(i);
          elementsById.put(report.getObjectID(), report);
        }
      }

      startProcessing(logicalPageBox);
View Full Code Here

      }
    }

    if (b instanceof RootLevelBand)
    {
      final RootLevelBand rlb = (RootLevelBand) b;
      final SubReport[] reports = rlb.getSubReports();
      for (int i = 0; i < reports.length; i++)
      {
        final SubReport subReport = reports[i];
        if (evaluateElement(subReport))
        {
View Full Code Here

TOP

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

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.