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

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


      {
        return next;
      }
    }

    final InstanceID ownerNext = positionList.getOwner(next);
    final InstanceID ownerPrev = positionList.getOwner(prev);
    if (ownerNext == owner && ownerPrev == owner)
    {
      return position;
    }
    if (ownerPrev == owner)
View Full Code Here


    // remove all reports that share the same master-report.
    final LinkedHashMap<InstanceID, ReportRenderContext> map = new LinkedHashMap<InstanceID, ReportRenderContext>();
    for (int i = 0; i < closeContexts.length; i++)
    {
      final ReportRenderContext closeContext = closeContexts[i];
      final InstanceID id = closeContext.getMasterReportElement().getObjectID();
      if (map.containsKey(id) == false)
      {
        map.put(id, closeContext);
      }
      else
View Full Code Here

  {
    final int count = sectionReportElement.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final Element reportElement = sectionReportElement.getElement(i);
      final InstanceID id = reportElement.getObjectID();
      elementsById.put(id, reportElement);

      if (reportElement instanceof Section)
      {
        collectDesignTimeElements((Section) reportElement);
      }
    }

    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

    }
  }

  public boolean startBox(final RenderBox box)
  {
    final InstanceID id = box.getNodeLayoutProperties().getInstanceId();
    final Element element = elementsById.get(id);
    if (element == null)
    {
      return true;
    }
View Full Code Here

  {
    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final ElementStyleSheet styleSheet = element.getStyle();
      final Object[] properties = oldStyle[i];
      for (int j = 0; j < keys.length; j++)
      {
View Full Code Here

  {
    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final ElementStyleSheet styleSheet = element.getStyle();
      final Object[] properties = currentStyle[i];
      for (int j = 0; j < keys.length; j++)
      {
View Full Code Here

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = oldExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
View Full Code Here

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = newExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
View Full Code Here

  {
    final int count = sectionReportElement.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final Element reportElement = sectionReportElement.getElement(i);
      final InstanceID id = reportElement.getObjectID();
      elementsById.put(id, reportElement);

      if (reportElement instanceof SubReport)
      {
        continue;
View Full Code Here

    }
  }

  public boolean startBox(final RenderBox box)
  {
    final InstanceID id = box.getNodeLayoutProperties().getInstanceId();
    final Element element = elementsById.get(id);
    if (element == null)
    {
      return true;
    }
View Full Code Here

TOP

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

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.