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

Examples of org.pentaho.reporting.engine.classic.core.filter.types.ContentType


  private Element element;

  public StaticImageReportElementReadHandler()
  {
    element = new Element();
    element.setElementType(new ContentType());
    element.getStyle().setStyleProperty(ElementStyleKeys.SCALE, Boolean.TRUE);
  }
View Full Code Here


    }

    content.clear();

    final Element watermarkImage = new Element();
    watermarkImage.setElementType(new ContentType());
    watermarkImage.setAttribute
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, watermarkDefinition.getSource());
    final ElementStyleSheet watermarkStyle = watermarkImage.getStyle();
    watermarkStyle.setStyleProperty(ElementStyleKeys.POS_X, convertLength(watermarkDefinition.getX()));
    watermarkStyle.setStyleProperty(ElementStyleKeys.POS_Y, convertLength(watermarkDefinition.getY()));
View Full Code Here

  {
    final Element element = new Element();
    applyElementName(element);
    applyStyle(element.getStyle());

    element.setElementType(new ContentType());
    if (content != null)
    {
      element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, content);
    }
    if (baseURL != null)
View Full Code Here

  public void testLoadSave() throws Exception
  {
    final ResourceKey key = createImageKey();

    final Element element = new Element();
    element.setElementType(new ContentType());
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, key);

    // first, create the report with an embedded resource in it.
    final MasterReport report = new MasterReport();
    report.getReportHeader().addElement(element);
View Full Code Here

@Deprecated
public class ContentReadHandler extends AbstractElementReadHandler
{
  public ContentReadHandler() throws ParseException
  {
    super(new ContentType());
  }
View Full Code Here

  public void testLoadSaveFromDisk() throws Exception
  {
    final ResourceKey key = createImageKey();

    final Element element = new Element();
    element.setElementType(new ContentType());
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, key);
    // .. save it.
    final MasterReport report = new MasterReport();
    report.getReportHeader().addElement(element);
View Full Code Here

      final AttributeSet attributes = textElement.getAttributes();
      if (HTML.Tag.IMG.equals(attributes.getAttribute(StyleConstants.NameAttribute)))
      {
        final Element result = new Element();
        result.setName(textElement.getName());
        result.setElementType(new ContentType());
        final String src = (String) attributes.getAttribute(HTML.Attribute.SRC);
        final String alt = (String) attributes.getAttribute(HTML.Attribute.TITLE);
        result.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, convertURL(src));
        result.setAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Html.TITLE, alt);
        result.setAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Swing.TOOLTIP, alt);
View Full Code Here

  {
    final Element element = new Element();
    applyElementName(element);
    applyStyle(element.getStyle());

    element.setElementType(new ContentType());
    if (content != null)
    {
      element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, content);
    }
    if (baseURL != null)
View Full Code Here

  private Element element;

  public StaticImageReportElementReadHandler()
  {
    element = new Element();
    element.setElementType(new ContentType());
    element.getStyle().setStyleProperty(ElementStyleKeys.SCALE, Boolean.TRUE);
  }
View Full Code Here

    }

    content.clear();

    final Element watermarkImage = new Element();
    watermarkImage.setElementType(new ContentType());
    watermarkImage.setAttribute
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, watermarkDefinition.getSource());
    final ElementStyleSheet watermarkStyle = watermarkImage.getStyle();
    watermarkStyle.setStyleProperty(ElementStyleKeys.POS_X, convertLength(watermarkDefinition.getX()));
    watermarkStyle.setStyleProperty(ElementStyleKeys.POS_Y, convertLength(watermarkDefinition.getY()));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.filter.types.ContentType

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.