Examples of InstanceID


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 = newExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
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 SubReport)
      {
        continue;
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 RenderableTextFactory textFactory = new DefaultRenderableTextFactory(outputProcessorMetaData);
    textFactory.startText();

    final RenderNode[] renderNodes = textFactory.createText(bufferArray, 0, buffer.getLength(),
        SimpleStyleSheet.EMPTY_STYLE, AutoLayoutBoxType.INSTANCE, new InstanceID(), ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();
    if (renderNodes.length > 0)
    {
      return renderNodes[0];
    }
View Full Code Here

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

  private RichTextSpec createText()
  {
    Map<AttributedCharacterIterator.Attribute, Object> attrs =
        new HashMap<AttributedCharacterIterator.Attribute, Object>();
    List<RichTextSpec.StyledChunk> chunks = new ArrayList<RichTextSpec.StyledChunk>();
    InstanceID id = new InstanceID();
    chunks.add(new RichTextSpec.StyledChunk(0, 3, new SpacerRenderNode(), attrs,
        new ReportAttributeMap<Object>(), ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(), "ABC"));
    chunks.add(new RichTextSpec.StyledChunk(3, 6, new SpacerRenderNode(), attrs,
        new ReportAttributeMap<Object>(), ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(), "def"));
    chunks.add(new RichTextSpec.StyledChunk(6, 9, new SpacerRenderNode(), attrs,
        new ReportAttributeMap<Object>(), ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(), "GHI"));
    chunks.add(new RichTextSpec.StyledChunk(9, 12, new SpacerRenderNode(), attrs,
        new ReportAttributeMap<Object>(), ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(), "jkl"));
    chunks.add(new RichTextSpec.StyledChunk(12, 15, new SpacerRenderNode(), attrs,
        new ReportAttributeMap<Object>(), ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(), "MNO"));
    return new RichTextSpec("ABCdefGHIjklMNO", TextDirection.LTR, chunks);
  }
View Full Code Here

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

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

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

    final Element element = new Element();
    final int length = buffer.getLength();
    element.getStyle().setStyleProperty(TextStyleKeys.WHITE_SPACE_COLLAPSE, WhitespaceCollapse.DISCARD);
    final RenderNode[] renderNodes =
        textFactory.createText(data, 0, length, SimpleStyleResolver.resolveOneTime(element), LegacyType.INSTANCE, new InstanceID(),
            ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

  }
View Full Code Here

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

    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

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

    final RenderableTextFactory textFactory = new DefaultRenderableTextFactory(outputProcessorMetaData);
    textFactory.startText();

    final RenderNode[] renderNodes = textFactory.createText(bufferArray, 0, buffer.getLength(),
        SimpleStyleSheet.EMPTY_STYLE, AutoLayoutBoxType.INSTANCE, new InstanceID(), ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();
    if (renderNodes.length > 0)
    {
      return renderNodes[0];
    }
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.