Package org.pentaho.reporting.engine.classic.core.util

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


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

    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

    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

    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

    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

    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

   */
  private InstanceID id;

  protected AbstractStyleSheet()
  {
    this.id = new InstanceID();
  }
View Full Code Here

  }

  public StyleSheet derive() throws CloneNotSupportedException
  {
    final AbstractStyleSheet s = (AbstractStyleSheet) super.clone();
    s.id = new InstanceID();
    return s;
  }
View Full Code Here

  private long changeTracker;
  private InstanceID instanceId;

  public SimpleStyleSheet(final StyleSheet parent)
  {
    this(new InstanceID(), parent);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.InstanceID

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.