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

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


    final StyleSheet resolverStyleSheet = element.getComputedStyle();
    final RenderBox subReportBox = renderNodeFactory.produceSubReportPlaceholder(element, resolverStyleSheet, stateKey);
    this.context.addChild(subReportBox);
    this.context.setEmpty(false);
    final InstanceID subReportBoxId = subReportBox.getInstanceId();
    // the box will be closed
    return new InlineSubreportMarker(element, subReportBoxId, SubReportProcessType.INLINE);
  }
View Full Code Here


    getParent().updateState(stateKey);
  }

  public InstanceID startBox(final ReportElement element)
  {
    InstanceID instanceID = getParent().startBox(element);
    if (inBoxDepth == 0)
    {
      if (logger.isDebugEnabled())
      {
        logger.debug("Started a Box: " + slotCounter + " " + element);
View Full Code Here

  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

        ("org.pentaho.reporting.engine.classic.core.layout.style.ValidateStyleCacheResults"));
  }

  public SimpleStyleSheet getStyleSheet(final StyleSheet parent)
  {
    final InstanceID id = parent.getId();
    final String styleClass = parent.getClass().getName();
    lookupKey.setStyleClass(styleClass);
    lookupKey.setInstanceId(id);
    final CacheCarrier cc = cache.get(lookupKey);
    if (cc == null)
View Full Code Here

  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

  private static StyleSheet DEFAULT_STYLE = new SimpleStyleSheet(new UseMinChunkWidthStyleSheet(true));
  private int rowIndex;

  public AutoRenderBox()
  {
    this(new InstanceID(), null, ReportAttributeMap.EMPTY_MAP);
  }
View Full Code Here

    this(new InstanceID(), null, ReportAttributeMap.EMPTY_MAP);
  }

  public AutoRenderBox(final StyleSheet styleSheet)
  {
    this(new InstanceID(), null, styleSheet, ReportAttributeMap.EMPTY_MAP);
  }
View Full Code Here

    }

    public FlatGroupSectionStrategy deriveForStorage(final RenderBox clonedParent)
    {
      final FlatGroupSectionStrategy clone = (FlatGroupSectionStrategy) clone();
      final InstanceID groupBoxInstanceId = groupBox.getInstanceId();
      final RenderBox groupBoxClone;
      if (clonedParent == null)
      {
        groupBoxClone = (RenderBox) clone.groupBox.derive(true);
      }
      else
      {
        groupBoxClone = (RenderBox) clonedParent.findNodeById(groupBoxInstanceId);
        if (groupBoxClone == null)
        {
          throw new IllegalStateException("The pagebox did no longer contain the stored node.");
        }
        if (groupBoxClone == groupBox)
        {
          throw new IllegalStateException("Thought you wanted a groupBoxClone");
        }
      }

      final RenderBox addBox = getAddBox();
      final RenderBox addBoxClone;
      if (addBox == groupBox)
      {
        addBoxClone = groupBoxClone;
      }
      else
      {
        final InstanceID addBoxInstanceId = addBox.getInstanceId();
        addBoxClone = (RenderBox) groupBoxClone.findNodeById(addBoxInstanceId);
        if (addBoxClone == null)
        {
          throw new IllegalStateException("The pagebox did no longer contain the stored node.");
        }
View Full Code Here

public 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

    this.watermarkArea = new WatermarkAreaBox();
    this.watermarkArea.setName("Logical-Page-Watermark-Area");
    this.watermarkArea.setLogicalPage(this);

    final BlockRenderBox contentArea = new BlockRenderBox
        (SimpleStyleSheet.EMPTY_STYLE, new InstanceID(), BoxDefinition.EMPTY, new MasterReportType(),
            report.getAttributes(), null);
    contentArea.setName("Logical-Page-Content-Area");
    addChild(contentArea);
    contentAreaId = contentArea.getInstanceId();
    this.pageGrid = new DefaultPageGrid(report.getPageDefinition());
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.