Examples of SimpleStyleSheet


Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    this.rollbackStep = new RollbackStep();
    this.sectionBoxes = new SectionRenderBox[5];

    this.groupStack = new FastStack(50);

    bandWithKeepTogetherStyle = new SimpleStyleSheet(new SectionKeepTogetherStyleSheet(true));
    bandWithoutKeepTogetherStyle = new SimpleStyleSheet(new SectionKeepTogetherStyleSheet(false));

    final boolean paddingsDisabled = metaData.isFeatureSupported(OutputProcessorFeature.DISABLE_PADDING);
    this.sectionStyleCache = new StyleCache(paddingsDisabled);
    this.boxDefinitionFactory = new BoxDefinitionFactory();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    if (readOnly)
    {
      throw new IllegalStateException();
    }

    final SimpleStyleSheet reportStyle = sectionStyleCache.getStyleSheet(report.getStyle());
    final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(reportStyle);
    this.pageBox = new LogicalPageBox(report, reportStyle, boxDefinition);

    if (reportStyle.getBooleanStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE))
    {
      this.groupStack.push(new GroupSection(pageBox.getContentArea(), bandWithKeepTogetherStyle));
    }
    else
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    final StyleSheet styleSheet = ElementDefaultStyleSheet.getDefaultStyle();

    final RenderBox box;
    if (insertationPoint == null)
    {
      final SimpleStyleSheet reportStyle = sectionStyleCache.getStyleSheet(styleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(reportStyle);
      box = new BlockRenderBox
          (reportStyle, report.getObjectID(), boxDefinition, SubReportType.INSTANCE, report.getAttributes(), null);
      if (report.getName() != null)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    {
      groupStack.push(new IgnoredContentIndicator());
      return;
    }

    final SimpleStyleSheet reportStyle = sectionStyleCache.getStyleSheet(group.getStyle());
    final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(reportStyle);
    final BlockRenderBox groupBox = new BlockRenderBox
        (reportStyle, group.getObjectID(), boxDefinition, group.getElementType(), group.getAttributes(), null);

    groupBox.getStaticBoxLayoutProperties().setPlaceholderBox(true);
    groupBox.setName(group.getElementTypeName() + "-Section-" + groupStack.size());
    addBox(groupBox);
    if (reportStyle.getBooleanStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE))
    {
      this.groupStack.push(new GroupSection(groupBox, bandWithKeepTogetherStyle));
    }
    else
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    {
      groupStack.push(new IgnoredContentIndicator());
      return;
    }

    final SimpleStyleSheet reportStyle = sectionStyleCache.getStyleSheet(groupBody.getStyle());
    final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(reportStyle);
    final BlockRenderBox groupBox = new BlockRenderBox(reportStyle, groupBody.getObjectID(),
        boxDefinition, groupBody.getElementType(), groupBody.getAttributes(), null);

    // todo: PRD-3154: This is black magic, placeholder box true is evil.
    // Need to evaluate side-effects of this beast. Is it safe for keep-together boxes?
    groupBox.getStaticBoxLayoutProperties().setPlaceholderBox(true);
    groupBox.setName("Group-body-" + groupStack.size());
    addBox(groupBox);
    if (reportStyle.getBooleanStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE))
    {
      this.groupStack.push(new GroupSection(groupBox, bandWithKeepTogetherStyle));
    }
    else
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    if (this.manualBreakBoxStyle == null)
    {
      final ManualBreakIndicatorStyleSheet mbis =
          new ManualBreakIndicatorStyleSheet(BandDefaultStyleSheet.getBandDefaultStyle());
      this.manualBreakBoxStyle = new SimpleStyleSheet(mbis);
    }

    final RenderBox sectionBox = new BreakMarkerRenderBox
        (manualBreakBoxStyle, new InstanceID(), BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE,
            ReportAttributeMap.EMPTY_MAP, stateKey);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    {
      final StyleSheet styleSheet = new DesignerSubReportStyleSheet(new SubReportStyleSheet
          (resolverStyleSheet.getBooleanStyleProperty(BandStyleKeys.PAGEBREAK_BEFORE),
              (resolverStyleSheet.getBooleanStyleProperty(BandStyleKeys.PAGEBREAK_AFTER))));

      final SimpleStyleSheet reportStyle = new SimpleStyleSheet(styleSheet);
      final BoxDefinition boxDefinition = getRenderNodeFactory().getBoxDefinition(reportStyle);
      box = new BlockRenderBox
          (reportStyle, element.getObjectID(), boxDefinition, SubReportType.INSTANCE, element.getAttributes(), null);
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    final int[] data = buffer.getBuffer();

    final int length = buffer.getLength();
    final ElementDefaultStyleSheet defaultStyle = ElementDefaultStyleSheet.getDefaultStyle();
    final RenderNode[] renderNodes =
        textFactory.createText(data, 0, length, new SimpleStyleSheet(defaultStyle), LegacyType.INSTANCE, new InstanceID(),
            ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(renderNodes);
    assertEquals(renderNodes.length, 3);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    final int[] data = buffer.getBuffer();

    final int length = buffer.getLength();
    final ElementDefaultStyleSheet defaultStyle = ElementDefaultStyleSheet.getDefaultStyle();
    final RenderNode[] renderNodes =
        textFactory.createText(data, 0, length, new SimpleStyleSheet(defaultStyle), LegacyType.INSTANCE, new InstanceID(),
            ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(renderNodes);
    assertEquals(renderNodes.length, 3);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet

    String sourceText = new String(new char[]{768, 768, 69, 114, 114, 111, 114}); // String sourceText = "?Error";
    CodePointBuffer buffer = Utf16LE.getInstance().decodeString(sourceText, null);
    final int[] data = buffer.getBuffer();

    textFactory.createText(data, 0, buffer.getLength(), new SimpleStyleSheet(ElementDefaultStyleSheet.getDefaultStyle()), TextFieldType.INSTANCE, new InstanceID(),
        ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(finishNodes);
    assertEquals(finishNodes.length, 1);
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.