Examples of InstanceID


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

  private boolean isDataFactoryChanged()
  {
    AbstractReportDefinition parent = this.parent;
    while (parent != null)
    {
      final InstanceID id = parent.getObjectID();
      final Long dataSourceChangeTracker = parent.getDatasourceChangeTracker();
      if (dataSourceChangeTracker.equals(dataFactoryChangeTrackers.get(id)) == false)
      {
        return true;
      }
View Full Code Here

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

  private void updateChangeTrackers()
  {
    AbstractReportDefinition parent = this.parent;
    while (parent != null)
    {
      final InstanceID id = parent.getObjectID();
      dataFactoryChangeTrackers.put(id, parent.getDatasourceChangeTracker());
      nonVisualChangeTrackers.put(id, parent.getNonVisualsChangeTracker());

      final Section parentSection = parent.getParentSection();
      if (parentSection == null)
View Full Code Here

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

  private RenderableReplacedContent content;

  public RenderableReplacedContentBox(final RenderableReplacedContent content)
  {
    super(RenderNode.VERTICAL_AXIS, RenderNode.HORIZONTAL_AXIS,
        SimpleStyleSheet.EMPTY_STYLE, new InstanceID(), BoxDefinition.EMPTY,
        AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    if (content == null)
    {
      throw new NullPointerException();
    }
View Full Code Here

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

  private static class LineBoxRenderBox extends BlockRenderBox
  {
    protected LineBoxRenderBox(final StyleSheet styleSheet,
                               final ReportStateKey stateKey)
    {
      super(styleSheet, new InstanceID(), BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP,
          stateKey);
    }
View Full Code Here

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

public final class RowRenderBox extends RenderBox
{
  public RowRenderBox(final StyleSheet styleSheet)
  {
    super(RenderNode.HORIZONTAL_AXIS, RenderNode.VERTICAL_AXIS,
        styleSheet, new InstanceID(), BoxDefinition.EMPTY,
        AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
  }
View Full Code Here

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

    super(string);
  }

  public void testSingleElementReplacement()
  {
    final BlockRenderBox parent = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox first = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox second = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(),new InstanceID(), new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox third = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox fourth = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);

    parent.addChild(first);
    parent.addChild(second);
    parent.addChild(third);
    parent.addChild(fourth);
View Full Code Here

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

    assertNull(fourth.getParent());
  }

  public void testMore()
  {
    final BlockRenderBox parent = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(),new InstanceID(), new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox first = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(),new InstanceID(), new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox second = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox third = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(),new InstanceID(), new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    final BlockRenderBox fourth = new BlockRenderBox(ElementDefaultStyleSheet.getDefaultStyle(), new InstanceID(),new BoxDefinition(), LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);

    parent.addChild(first);
    parent.addChild(second);
    parent.addChild(third);
    parent.addChild(fourth);
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, defaultStyle, LegacyType.INSTANCE, new InstanceID(), ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(renderNodes);
    assertEquals(renderNodes.length, 3);
    assertTrue(renderNodes[0].getMinimumChunkWidth() > 0);
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, defaultStyle, LegacyType.INSTANCE, new InstanceID(), ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(renderNodes);
    assertEquals(renderNodes.length, 3);
    assertTrue(renderNodes[0].getMinimumChunkWidth() > 0);
View Full Code Here

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

    tester.addMajorBreak(30000, 0);
  }

  private RenderBox createBox (final long y, final long height)
  {
    final RenderBox box = new BlockRenderBox(SimpleStyleSheet.EMPTY_STYLE, new InstanceID(),
        BoxDefinition.EMPTY, LegacyType.INSTANCE, ReportAttributeMap.EMPTY_MAP, null);
    box.setY(y);
    box.setHeight(height);
    return box;
  }
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.