Package org.pentaho.reporting.engine.classic.core.layout.style

Examples of org.pentaho.reporting.engine.classic.core.layout.style.NonDynamicHeightWrapperStyleSheet


    final SimpleStyleSheet elementStyle;
    if ((parentBox.getNodeType() & LayoutNodeTypes.MASK_BOX_CANVAS) == LayoutNodeTypes.MASK_BOX_CANVAS)
    {
      if (element.isDynamicContent() == false)
      {
        elementStyle = textStyleCache.getStyleSheet(new NonDynamicHeightWrapperStyleSheet(style));
      }
      else
      {
        elementStyle = styleCache.getStyleSheet(new DynamicHeightWrapperStyleSheet(style));
      }
View Full Code Here


    final SimpleStyleSheet elementStyle;
    if (((box.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE) == false)
    {
      if (element.isDynamicContent() == false)
      {
        elementStyle = textStyleCache.getStyleSheet(new NonDynamicHeightWrapperStyleSheet(element.getStyle()));
      }
      else
      {
        elementStyle = styleCache.getStyleSheet(new DynamicHeightWrapperStyleSheet(element.getStyle()));
      }
View Full Code Here

    final String anchorName = anchor.getName();

    if ((box.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet
          (new NonDynamicHeightWrapperStyleSheet(new AnchorStyleSheet(anchorName, element.getStyle())));
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      final RenderBox autoParagraphBox = new InlineRenderBox(styleSheet, element.getObjectID(), boxDefinition,
          element.getElementType(), element.getAttributes(), stateKey);
      autoParagraphBox.setName(element.getName());
      autoParagraphBox.getBoxDefinition().setPreferredWidth(RenderLength.AUTO);
      autoParagraphBox.close();
      box.addChild(autoParagraphBox);
    }
    else // add the replaced content into a ordinary block box. There's no need to create a full paragraph for it
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet
          (new NonDynamicHeightWrapperStyleSheet(new AnchorStyleSheet(anchorName, element.getStyle())));
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      final RenderBox autoParagraphBox = new CanvasRenderBox(styleSheet, element.getObjectID(), boxDefinition,
          element.getElementType(), element.getAttributes(), stateKey);
      autoParagraphBox.setName(element.getName());
      autoParagraphBox.getBoxDefinition().setPreferredWidth(RenderLength.AUTO);
View Full Code Here

    final SimpleStyleSheet elementStyle;
    if (((box.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE) == false)
    {
      if (element.isDynamicContent() == false)
      {
        elementStyle = textStyleCache.getStyleSheet(new NonDynamicHeightWrapperStyleSheet(element.getStyle()));
      }
      else
      {
        elementStyle = styleCache.getStyleSheet(new DynamicHeightWrapperStyleSheet(element.getStyle()));
      }
View Full Code Here

      {
        // A table always claims all elements as dynamic. Use the max-height to limit the expansion of elements.
        if (isTableContext(this.context.getRenderBox()) == false &&
            resolverStyleSheet.getBooleanStyleProperty(ElementStyleKeys.DYNAMIC_HEIGHT) == false)
        {
          elementStyle = new NonDynamicHeightWrapperStyleSheet(resolverStyleSheet);
        }
        else
        {
          elementStyle = new DynamicHeightWrapperStyleSheet(resolverStyleSheet);
        }
View Full Code Here

    final StyleCache styleCache = getStyleCache();
    final SimpleStyleSheet elementStyle;
    if (((box.getNodeType() & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK))
    {
      elementStyle = textStyleCache.getStyleSheet
          (new FullWidthWrapperStyleSheet(new NonDynamicHeightWrapperStyleSheet(element.getStyle())));
    }
    else if ((box.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
    {
      elementStyle = styleCache.getStyleSheet(new FullWidthWrapperStyleSheet(element.getStyle()));
    }
    else
    {
      elementStyle = textStyleCache.getStyleSheet
          (new NonDynamicHeightWrapperStyleSheet(element.getStyle()));
    }


    reportDrawable.setStyleSheet(elementStyle);
    final DrawableWrapper wrapper = new DrawableWrapper(reportDrawable);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.style.NonDynamicHeightWrapperStyleSheet

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.