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

Examples of org.pentaho.reporting.engine.classic.core.layout.model.RenderableReplacedContentBox


      box.setCachedHeight(blockHeight);
    }
    else if (nodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final long resolveSize = resolveUseableParentHeight(box);
      final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
      final long computedHeight = ReplacedContentUtil.computeHeight(rpc, resolveSize, box.getCachedWidth());
      box.setCachedHeight(computedHeight);
    }
    else
    {
View Full Code Here


      final long blockHeight = computeRowHeightAndAlign(box, resolveSize, false);
      box.setCachedHeight(blockHeight);
    }
    else if (nodeType == LayoutNodeTypes.TYPE_BOX_CONTENT)
    {
      final RenderableReplacedContentBox rpc = (RenderableReplacedContentBox) box;
      final long resolveSize = resolveParentHeight(box);
      box.setCachedHeight(ReplacedContentUtil.computeHeight(rpc, resolveSize, box.getCachedWidth()));
    }
    else
    {
View Full Code Here

    protected boolean startBox(final RenderBox node)
    {
      if (node.getNodeType() == LayoutNodeTypes.TYPE_BOX_CONTENT)
      {
        RenderableReplacedContentBox box = (RenderableReplacedContentBox) node;
        final FastHtmlImageBounds cb = new FastHtmlImageBounds(node.getWidth(), node.getHeight(),
            box.getContent().getContentWidth(), box.getContent().getContentHeight());
        recordedBounds.put(node.getInstanceId(), cb);
        return false;
      }
      return true;
    }
View Full Code Here

    }

    final SimpleStyleSheet elementStyle = bandCache.getStyleSheet(style);
    final RenderableReplacedContent content = new RenderableReplacedContent(elementStyle, value, rawKey, metaData);
    final BoxDefinition boxDefinition = getBoxDefinition(elementStyle);
    final RenderableReplacedContentBox child =
        new RenderableReplacedContentBox(elementStyle, element.getObjectID(), boxDefinition,
            element.getElementType(), element.getAttributes(), stateKey, content);
    child.setName(element.getName());
    return child;
  }
View Full Code Here

    LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    final RenderNode renderNode = MatchFactory.findElementByName(logicalPageBox, "xy-chart");
    assertTrue(renderNode instanceof RenderableReplacedContentBox);

    final RenderableReplacedContentBox xyChart = (RenderableReplacedContentBox) renderNode;
    RenderableReplacedContent xyChartContent = xyChart.getContent();
    assertTrue(xyChartContent.getRawObject() instanceof DrawableWrapper);

    final DrawableWrapper drawable = (DrawableWrapper)xyChartContent.getRawObject();
    assertTrue(drawable.getBackend() instanceof JFreeChartReportDrawable);
    final JFreeChartReportDrawable jFreeChartReportDrawable = (JFreeChartReportDrawable)drawable.getBackend();
View Full Code Here

    Assert.assertTrue(elementsByElementType.length > 0);

    for (final RenderNode renderNode : elementsByElementType)
    {
      final RenderableReplacedContentBox c = (RenderableReplacedContentBox) renderNode;
      final DrawableWrapper rawObject = (DrawableWrapper) c.getContent().getRawObject();
      final JFreeChartReportDrawable backend = (JFreeChartReportDrawable) rawObject.getBackend();
      final JFreeChart chart = backend.getChart();
      final CategoryPlot p = (CategoryPlot) chart.getPlot();
      final CategoryDataset dataset = p.getDataset();
      Assert.assertNotNull(dataset);
View Full Code Here

    reportDrawable.setStyleSheet(elementStyle);
    final DrawableWrapper wrapper = new DrawableWrapper(reportDrawable);

    final RenderableReplacedContent content = new RenderableReplacedContent(elementStyle, wrapper, null, getMetaData());
    final BoxDefinition boxDefinition = getBoxDefinitionFactory().getBoxDefinition(elementStyle);
    final RenderableReplacedContentBox child =
        new RenderableReplacedContentBox(elementStyle, element.getObjectID(), boxDefinition,
            element.getElementType(), element.getAttributes(), stateKey, content);
    child.setName(element.getName());
    box.addChild(child);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.RenderableReplacedContentBox

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.