Examples of derive()


Examples of org.pentaho.reporting.engine.classic.core.Group.derive()

      if (other instanceof CrosstabColumnGroup)
      {
        predefinedGroups.remove(column, tuple);
        logger.debug(String.format("Preserving existing column group " + column));

        final CrosstabColumnGroup og = (CrosstabColumnGroup) other.derive(true);
        og.setBody(innerBody);
        createSummaryCells(cellBody, colDimension);
        return og;
      }
      else if (other instanceof CrosstabRowGroup)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.MasterReport.derive()

        BundleUtilities.copyMetaData(mem, bundle);
        resource.setBundle(mem);
        resource.setContentBase(mem.getBundleMainKey());
      }

      return (AbstractReportDefinition) resource.derive();
    }
    catch (Exception ex)
    {
      getDesignTimeContext().error(ex);
      return null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.MasterReport.derive()

        BundleUtilities.copyMetaData(mem, bundle);
        resource.setBundle(mem);
        resource.setContentBase(mem.getBundleMainKey());
      }

      return (AbstractReportDefinition) resource.derive();
    }
    catch (Exception ex)
    {
      getDesignTimeContext().error(ex);
      return null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport.derive()

    subReport.addExpression(function);

    MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory(report.getQuery(), new DefaultTableModel(2,2)));
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.getHeader().addSubReport((SubReport) subReport.derive());
    report.getItemBand().addSubReport((SubReport) subReport.derive());

    DebugReportRunner.execGraphics2D(report);

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport.derive()

    MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory(report.getQuery(), new DefaultTableModel(2,2)));
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.getHeader().addSubReport((SubReport) subReport.derive());
    report.getItemBand().addSubReport((SubReport) subReport.derive());

    DebugReportRunner.execGraphics2D(report);

  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderNode.derive()

      else
      {
        for (int i = slotCounter; i < slots.size(); i++)
        {
          final RenderNode node = slots.get(i);
          sectionBox.addGeneratedChild(node.derive(true));
        }
      }
    }

    if (logger.isDebugEnabled())
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderNode.derive()

      final RenderNode[] nodes = (RenderNode[]) text.clone();
      final int nodeCount = nodes.length;
      for (int i = 0; i < nodeCount; i++)
      {
        final RenderNode node = nodes[i];
        nodes[i] = node.derive(true);
      }
      return nodes;
    }

    public RenderNode[] getFinish()
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderNode.derive()

      final RenderNode[] nodes = (RenderNode[]) finish.clone();
      final int nodeCount = nodes.length;
      for (int i = 0; i < nodeCount; i++)
      {
        final RenderNode node = nodes[i];
        nodes[i] = node.derive(true);
      }
      return nodes;
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderNode.derive()

        {
          rebuildLastLineComplex((RenderBox) lineBox.getLastChild(), (RenderBox) child);
        }
        else
        {
          RenderBox lineBoxChild = (RenderBox) child.derive(false);
          rebuildLastLineComplex(lineBoxChild, (RenderBox) child);
          lineBoxChild.close();
          lineBox.addGeneratedChild(lineBoxChild);
        }
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderNode.derive()

          final long minimumLength = sequenceElement.getMaximumWidth(node);

          if (classification == InlineSequenceElement.Classification.START)
          {
            node.setCachedX(posX);
            final RenderBox renderBox = (RenderBox) node.derive(false);
            context.push(renderBox);
            if (rootBox == null)
            {
              rootBox = renderBox;
            }
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.