Examples of DrawableWrapper


Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    return nodes;
  }

  public PageBackgroundDrawable getBackgroundDrawable()
  {
    final DrawableWrapper wrapper = getDrawable();
    if (wrapper == null)
    {
      return null;
    }
    final Object backend = wrapper.getBackend();
    if (backend instanceof PageBackgroundDrawable == false)
    {
      return null;
    }
    return (PageBackgroundDrawable) backend;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    final Object rawContentObject = rpc.getRawObject();
    if (rawContentObject instanceof DrawableWrapper == false)
    {
      return null;
    }
    final DrawableWrapper wrapper = (DrawableWrapper) rawContentObject;
    final Object rawbackend = wrapper.getBackend();
    if (rawbackend instanceof ShapeDrawable == false)
    {
      return null;
    }
    final ShapeDrawable drawable = (ShapeDrawable) rawbackend;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

      final Object rawContentObject = rpc.getRawObject();
      if (rawContentObject instanceof DrawableWrapper == false)
      {
        return true;
      }
      final DrawableWrapper wrapper = (DrawableWrapper) rawContentObject;
      final Object rawbackend = wrapper.getBackend();
      if (rawbackend instanceof ShapeDrawable == false)
      {
        return true;
      }
      final ShapeDrawable drawable = (ShapeDrawable) rawbackend;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

  {
    final Graphics2D g2 = getGraphics();
    final Object o = content.getContent().getRawObject();
    if (o instanceof DrawableWrapper)
    {
      final DrawableWrapper drawableWrapper = (DrawableWrapper) o;
      if (drawDrawable(content, g2, drawableWrapper))
      {
        drawImageMap(content);
      }
      return;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    {
      setDrawable((DrawableWrapper) o);
    }
    else
    {
      setDrawable(new DrawableWrapper(o));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    }

    if (rawObject instanceof DrawableWrapper)
    {
      // render it into an Buffered image and make it a PNG file.
      final DrawableWrapper drawable = (DrawableWrapper) rawObject;
      final StrictBounds cb = new StrictBounds(node.getX(), node.getY(), node.getWidth(), node.getHeight());
      final ImageContainer image = RenderUtility.createImageFromDrawable(drawable, cb, node,
          metaData);
      if (image == null)
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    {
      drawImage(content, (Image) o);
    }
    else if (o instanceof DrawableWrapper)
    {
      final DrawableWrapper d = (DrawableWrapper) o;
      drawDrawable(content, g2, d);
    }
    else if (o instanceof LocalImageContainer)
    {
      final LocalImageContainer imageContainer = (LocalImageContainer) o;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

      createImageCell(rawSource, imageContainer, sheetLayout, rectangle, contentBounds);
      return false;
    }
    else if (value instanceof DrawableWrapper)
    {
      final DrawableWrapper drawable = (DrawableWrapper) value;
      final RenderNode rawSource = textExtractor.getRawSource();
      final StrictBounds contentBounds = new StrictBounds
          (rawSource.getX(), rawSource.getY() + contentOffset, rawSource.getWidth(), rawSource.getHeight());
      final ImageContainer imageFromDrawable =
          RenderUtility.createImageFromDrawable(drawable, contentBounds, content, metaData);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

    final Object rawContentObject = rpc.getRawObject();
    if (rawContentObject instanceof DrawableWrapper == false)
    {
      return;
    }
    final DrawableWrapper wrapper = (DrawableWrapper) rawContentObject;
    final Object rawbackend = wrapper.getBackend();
    if (rawbackend instanceof ShapeDrawable == false)
    {
      return;
    }
    final ShapeDrawable drawable = (ShapeDrawable) rawbackend;
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.factory.drawable.DrawableWrapper

        contentHeight = StrictGeomUtility.toInternalValue(ir.getImageHeight() * scaleY);
      }
    }
    else if (content instanceof DrawableWrapper)
    {
      final DrawableWrapper edr = (DrawableWrapper) content;
      final Dimension preferredSize = edr.getPreferredSize();
      if (preferredSize != null)
      {
        contentWidth = StrictGeomUtility.toInternalValue(preferredSize.getWidth());
        contentHeight = StrictGeomUtility.toInternalValue(preferredSize.getHeight());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.