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

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


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


  }


  public InstanceID startBox(final ReportElement element)
  {
    InstanceID instanceID = getParent().startBox(element);
    inBoxDepth += 1;
    return instanceID;
  }
View Full Code Here

    this.cache = new LFUMap<CacheKey,CacheCarrier>(500);
  }

  public BoxDefinition getBoxDefinition(final StyleSheet es)
  {
    final InstanceID id = es.getId();
    cacheKey.reuse(id, es.getClass().getName());
    final CacheCarrier cc = cache.get(cacheKey);
    if (cc == null)
    {
      final BoxDefinition boxDefinition = createBoxDefinition(es);
View Full Code Here

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

  public RenderBox produceSectionBox(final String layoutType, final ReportStateKey stateKey)
  {
    if (strictCompatibilityMode)
    {
      final BoxDefinition boxDefinition = BoxDefinition.EMPTY;
      return new SectionRenderBox(bandWithoutKeepTogetherStyle, new InstanceID(), boxDefinition, AutoLayoutBoxType.INSTANCE,
          ReportAttributeMap.emptyMap(), stateKey);
    }

    final RenderBox renderBox = createBox(layoutType, stateKey,
        SECTION_DEFAULT_STYLE, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.emptyMap(), new InstanceID());
    renderBox.getStaticBoxLayoutProperties().setPlaceholderBox(StaticBoxLayoutProperties.PlaceholderType.SECTION);
    renderBox.getStaticBoxLayoutProperties().setSectionContext(true);
    return renderBox;
  }
View Full Code Here

  }

  @Deprecated
  public RenderBox createAutoParagraph(final ReportStateKey stateKey)
  {
    return new ParagraphRenderBox(SimpleStyleSheet.EMPTY_STYLE, new InstanceID(),
        BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP, stateKey);
  }
View Full Code Here

      final ManualBreakIndicatorStyleSheet mbis = new ManualBreakIndicatorStyleSheet();
      this.manualBreakBoxStyle = new SimpleStyleSheet(mbis);
    }

    final RenderBox sectionBox = new BreakMarkerRenderBox
        (manualBreakBoxStyle, new InstanceID(), BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE,
            ReportAttributeMap.EMPTY_MAP, stateKey, range);
    sectionBox.setName("pagebreak");
    sectionBox.close();
    return sectionBox;
  }
View Full Code Here

  {
  }

  public InstanceID startBox(final ReportElement element)
  {
    InstanceID instanceID = getParent().startBox(element);
    inBoxDepth += 1;
    return instanceID;
  }
View Full Code Here

  }

  public RenderBox create(final StyleSheet styleSheet)
  {
    final RenderBox b = (RenderBox) derive(false);
    b.reinit(styleSheet, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP, new InstanceID());
    b.boxDefinition = BoxDefinition.EMPTY;
    b.staticBoxLayoutProperties = new StaticBoxLayoutProperties();
    b.staticBoxPropertiesAge = -1;
    b.stateKey = null;
    b.setOpen(true);
View Full Code Here

        {
          // A spanned cell ..
          continue;
        }

        InstanceID instanceId = content.getNodeLayoutProperties().getInstanceId();
        String uuid = idMapping.get(instanceId);
        if (uuid == null)
        {
          uuid = String.valueOf(idMapping.size());
          idMapping.put(instanceId, uuid);
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.