Examples of InstanceID


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

        final long l = cleanPaginatedBoxesStep.compute(pageBox);
        if (l > 0)
        {
//          Log.debug ("Apply shift afterwards " + l);
          final InstanceID shiftNode = cleanPaginatedBoxesStep.getShiftNode();
          applyPageShiftValuesStep.compute(pageBox, l, shiftNode);
          debugPrint(pageBox);
        }

        pageBox.setPageOffset(nextOffset);
View Full Code Here

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

  {
    final UndoManager manager = new UndoManager();
    final MasterReport report = new MasterReport();
    final ReportRenderContext rrc = new ReportRenderContext(report, report, null, new GlobalAuthenticationStore());

    final InstanceID id = report.getObjectID();
    manager.addChange("name1", new AttributeEditUndoEntry(id, "test-ns", "test", null, "new"));
    manager.addChange("name2", new AttributeEditUndoEntry(id, "test-ns", "test2", null, "groovy"));
    manager.addChange("name3", new AttributeEditUndoEntry(id, "test-ns", "test", "new", "other"));

    report.setAttribute("test-ns", "test", "other");
View Full Code Here

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

    r.draw(new TestGraphics2D());

    final Map<InstanceID,Set<InstanceID>> conflicts = reportContext.getSharedRenderer().getConflicts();
    assertEquals(1, conflicts.size());
    final Watermark watermark = report.getWatermark();
    final InstanceID watermarkE1 = watermark.getElement(0).getObjectID();
    final InstanceID watermarkE2 = watermark.getElement(1).getObjectID();
    assertFalse(conflicts.containsKey(watermarkE1));
    assertTrue(conflicts.containsKey(watermarkE2));
  }
View Full Code Here

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

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

    // 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

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

  {
    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

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

    }
  }

  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

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

  {
    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

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

  {
    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

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

    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
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.