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

Examples of org.pentaho.reporting.engine.classic.core.ReportAttributeMap


          this.xmlWriter = new XmlWriter(writer, td);
          this.xmlWriter.addImpliedNamespace(HtmlPrinter.XHTML_NAMESPACE, "");
          this.xmlWriter.setHtmlCompatiblityMode(true);
        }

        final ReportAttributeMap map = logicalPage.getAttributes();
        final Object rawContent = map.getAttribute(AttributeNames.Html.NAMESPACE,
            AttributeNames.Html.EXTRA_RAW_CONTENT);
        if (rawContent != null)
        {
          xmlWriter.writeText(String.valueOf(rawContent));
        }
View Full Code Here


      docWriter.writeTag(HtmlPrinter.XHTML_NAMESPACE, "style", "type", "text/css", XmlWriterSupport.OPEN);
      inlineStyleSheet.write(writer);
      docWriter.writeCloseTag();
    }

    final ReportAttributeMap attributes = logicalPage.getAttributes();
    final Object rawHeaderContent = attributes.getAttribute
        (AttributeNames.Html.NAMESPACE, AttributeNames.Html.EXTRA_RAW_HEADER_CONTENT);
    if (rawHeaderContent != null)
    {
      // Warning: This text is not escaped or processed in any way. it is *RAW* content.
      docWriter.writeText(String.valueOf(rawHeaderContent));
View Full Code Here

    this.drawArea = pageBounds;
  }

  private void writeElementAttributes(final RenderNode element) throws IOException
  {
    final ReportAttributeMap attributes = element.getAttributes();
    final ElementType type = element.getElementType();
    final String[] attributeNamespaces = attributes.getNameSpaces();
    for (int i = 0; i < attributeNamespaces.length; i++)
    {
      final String namespace = attributeNamespaces[i];

      final String[] attributeNames = attributes.getNames(namespace);
      for (int j = 0; j < attributeNames.length; j++)
      {
        final String name = attributeNames[j];
        final Object value = attributes.getAttribute(namespace, name);
        if (value == null)
        {
          continue;
        }
View Full Code Here

  {
    this.top = BorderEdge.EMPTY;
    this.left = BorderEdge.EMPTY;
    this.bottom = BorderEdge.EMPTY;
    this.right = BorderEdge.EMPTY;
    this.attributes = new ReportAttributeMap();

    this.topLeft = new BorderCorner(0, 0);
    this.topRight = new BorderCorner(0, 0);
    this.bottomLeft = new BorderCorner(0, 0);
    this.bottomRight = new BorderCorner(0, 0);
View Full Code Here

      // oh, no ellipse. Thats nice.
      return null;
    }

    final RenderBox textEllipse = (RenderBox) box.derive(false);
    final ReportAttributeMap map = box.getAttributes();
    final TextCache.Result result = textCache.get
        (style.getId(), style.getChangeTracker(), map.getChangeTracker(), reslit);
    if (result != null)
    {
      textEllipse.addGeneratedChilds(result.getText());
      textEllipse.addGeneratedChilds(result.getFinish());
      performTextEllipseLayout(textEllipse, x2);
      return textEllipse;
    }
    if (buffer != null)
    {
      buffer.setCursor(0);
    }

    buffer = Utf16LE.getInstance().decodeString(reslit, buffer);
    bufferArray = buffer.getBuffer(bufferArray);

    textFactory.startText();
    final RenderNode[] renderNodes = textFactory.createText
        (bufferArray, 0, buffer.getLength(), style, box.getElementType(), box.getInstanceId(), map);
    final RenderNode[] finishNodes = textFactory.finishText();

    textEllipse.addGeneratedChilds(renderNodes);
    textEllipse.addGeneratedChilds(finishNodes);
    textCache.store(style.getId(), style.getChangeTracker(),
        map.getChangeTracker(), reslit, style, map, renderNodes, finishNodes);
    performTextEllipseLayout(textEllipse, x2);
    return textEllipse;
  }
View Full Code Here

    {
      throw new NullPointerException();
    }
    this.namespace = namespace;
    this.name = name;
    this.attributes = new ReportAttributeMap();
  }
View Full Code Here

  public DefaultParameterDefinition()
  {
    parameters = new ArrayList();
    validator = new DefaultReportParameterValidator();
    attributeMap = new ReportAttributeMap();
  }
View Full Code Here

      throw new NullPointerException();
    }

    this.name = name;
    this.valueType = valueType;
    this.attributeMap = new ReportAttributeMap();
    setRole(ParameterAttributeNames.Core.ROLE_USER_PARAMETER);
  }
View Full Code Here

    return null;
  }

  public static ImageMap extractImageMap(final RenderableReplacedContentBox content)
  {
    final ReportAttributeMap attributes = content.getAttributes();
    final Object manualImageMap = attributes.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.IMAGE_MAP);
    if (manualImageMap instanceof ImageMap)
    {
      return (ImageMap) manualImageMap;
    }
    else
View Full Code Here

    {
      text = String.valueOf(value);
    }

    final ElementStyleSheet style = element.getStyle();
    final ReportAttributeMap attrs = element.getAttributes();
    final TextCache.Result result =
        textCache.get(style.getId(), style.getChangeTracker(), attrs.getChangeTracker(), text);
    if (result != null)
    {
      addTextNodes(element, rawValue, result.getText(), result.getFinish(),
          parentBox, result.getStyleSheet(), stateKey);
      return;
    }

    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));
      }
    }
    else
    {
      elementStyle = styleCache.getStyleSheet(style);
    }

    if (buffer != null)
    {
      buffer.setCursor(0);
    }

    buffer = Utf16LE.getInstance().decodeString(text, buffer);
    bufferArray = buffer.getBuffer(bufferArray);

    if (((parentBox.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE) == false)
    {
      textFactory.startText();
    }

    final RenderNode[] renderNodes = textFactory.createText
        (bufferArray, 0, buffer.getLength(), elementStyle, element.getElementType(), element.getObjectID(), attrs);
    final RenderNode[] finishNodes = textFactory.finishText();

    addTextNodes(element, rawValue, renderNodes, finishNodes, parentBox, elementStyle, stateKey);
    textCache.store(style.getId(), style.getChangeTracker(), attrs.getChangeTracker(),
        text, elementStyle, attrs, renderNodes, finishNodes);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportAttributeMap

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.