Examples of InlineSubreportMarker


Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

  public void addSubReportMarkers(final InlineSubreportMarker[] markers)
  {
    for (int i = 0; i < markers.length; i++)
    {
      final InlineSubreportMarker marker = markers[i];
      inlineSubreports.add(marker);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

  public void clearInlineSubreports(final SubReportProcessType inlineExecution)
  {
    final InlineSubreportMarker[] subreports = getInlineSubreports();
    for (int i = subreports.length - 1; i >= 0; i--)
    {
      final InlineSubreportMarker subreport = subreports[i];
      if (inlineExecution == subreport.getProcessType())
      {
        inlineSubreports.remove(i);
      }
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

        return null;
      }
      final Map<InstanceID, InlineSubreportMarker> map = new LinkedHashMap<InstanceID, InlineSubreportMarker>();
      for (int i = 0; i < subreports.length; i++)
      {
        final InlineSubreportMarker subreport = subreports[i];
        map.put(subreport.getSubreport().getObjectID(), subreport);
      }
      return map;
    }

    final InlineSubreportMarker[] markers = state.getLayoutProcess().getOutputFunction().getInlineSubreports();
    for (int i = 0; i < markers.length; i++)
    {
      final InlineSubreportMarker marker = markers[i];
      list.put(marker.getSubreport().getObjectID(), marker);
    }
    return list;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

      if (list == null)
      {
        list = new LinkedHashMap<InstanceID, InlineSubreportMarker>();
      }
      list.put(element.getObjectID(),
          new InlineSubreportMarker(element, null, SubReportProcessType.BANDED));
    }
    return list;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

        if (list == null)
        {
          list = new LinkedHashMap<InstanceID, InlineSubreportMarker>();
        }
        list.put(element.getObjectID(),
            new InlineSubreportMarker((SubReport) element, DUMMY_SUBREPORT_MARKER, SubReportProcessType.INLINE));
      }
      else if (element instanceof Section)
      {
        list = collectSubReportMarkers((Section) element, list);
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

                                  final SubReportProcessType type,
                                  final int startIndex)
  {
    for (int i = startIndex; i < markers.length; i++)
    {
      final InlineSubreportMarker marker = markers[i];
      if (marker.getProcessType() == type)
      {
        return i;
      }
    }
    return -1;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

    return builder.finishBox();
  }

  protected void processSubReport(final SubReport subReport, final LayoutModelBuilder builder)
  {
    final InlineSubreportMarker marker = builder.processSubReport(subReport);
    if (marker != null)
    {
      logger.debug("Process Subreport: " + marker.getInsertationPointId());
      collectedReports.add(marker);
    }
    else
    {
      logger.debug("Process Subreport: NOT returning anything.");
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

    return inlineProcess;
  }

  public SubReportProcessType getSubreportProcessingType()
  {
    InlineSubreportMarker cm = getCurrentSubReportMarker();
    if (cm == null)
    {
      return SubReportProcessType.BANDED;
    }
    return cm.getProcessType();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.InlineSubreportMarker

      builder.add(contentArea, band, runtime, null);
      final InlineSubreportMarker[] subreportMarkers = builder.endSection(contentArea, contentArea);

      for (int i = 0; i < subreportMarkers.length; i++)
      {
        final InlineSubreportMarker marker = subreportMarkers[i];
        final RenderNode node =
            contentArea.findNodeById(marker.getInsertationPointId());
        if (node instanceof RenderBox)
        {
          final RenderBox box = (RenderBox) node;
          box.close();
        }
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.