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

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


      {
        return true;
      }
      else if (element instanceof RootLevelBand)
      {
        final RootLevelBand band = (RootLevelBand) element;
        if (band.getSubReportCount() > 0)
        {
          return true;
        }
        if (isStructureRunNeeded((Section) element))
        {
View Full Code Here


      }

    }
    if (section instanceof RootLevelBand)
    {
      final RootLevelBand rlb = (RootLevelBand) section;
      final SubReport[] reports = rlb.getSubReports();
      for (int i = 0; i < reports.length; i++)
      {
        final SubReport report = reports[i];
        if ("toc".equals(report.getMetaData().getName()))
        {
View Full Code Here

      }
    }

    if (section instanceof RootLevelBand)
    {
      final RootLevelBand b = (RootLevelBand) section;
      final SubReport[] subReports = b.getSubReports();
      for (final SubReport subReport : subReports)
      {
        collectColorFromSection(subReport);
      }
    }
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("A newly inserted section must have a position within its parent.");
              }
              else
              {
                undos.add(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

      final Section reportElement = rc.getRendererRoot().getElement();
      final ReportSelectionModel 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 (index < re.getElementCount())
      {
        return re.getElement(re.getElementCount() - index - 1);
      }
      final int subReportIndex = index - re.getElementCount();
      final RootLevelBand rl = (RootLevelBand) parent;
      return rl.getSubReport(subReportIndex);
    }
    if (parent instanceof Section)
    {
      final Section br = (Section) parent;
      if (isStrictOrderNeeded(br))
View Full Code Here

    {
      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

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

        }
      }

      if (band instanceof RootLevelBand)
      {
        final RootLevelBand rlb = (RootLevelBand) band;
        final SubReport[] reports = rlb.getSubReports();
        if (reports.length > 0)
        {
          builder.startSection(contentArea, false);
          for (int i = 0; i < reports.length; i++)
          {
View Full Code Here

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

      if (rootLevelBandReportElement instanceof RootLevelBand)
      {
        final RootLevelBand rl = (RootLevelBand) rootLevelBandReportElement;
        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

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.