Examples of waitImageLoaded()


Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      {
        image = RenderUtility.scaleImage(image, clipWidth, clipHeight, RenderingHints.VALUE_INTERPOLATION_BICUBIC,
            true);
        content.getContent().setContentCached(image);
        obs = new WaitingImageObserver(image);
        obs.waitImageLoaded();
        scaleTransform = null;
      }
      else
      {
        scaleTransform = AffineTransform.getScaleInstance(scaleX, scaleY);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      }
    }

    while (g2.drawImage(image, scaleTransform, obs) == false)
    {
      obs.waitImageLoaded();
      if (obs.isError())
      {
        LogicalPageDrawable.logger.warn("Error while loading the image during the rendering.");
        break;
      }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      }
    }
    else
    {
      final WaitingImageObserver obs = new WaitingImageObserver(image);
      obs.waitImageLoaded();

      while (graphics.drawImage(image, null, obs) == false)
      {
        obs.waitImageLoaded();
        if (obs.isError())
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      final WaitingImageObserver obs = new WaitingImageObserver(image);
      obs.waitImageLoaded();

      while (graphics.drawImage(image, null, obs) == false)
      {
        obs.waitImageLoaded();
        if (obs.isError())
        {
          ExcelPrinter.logger.warn("Error while loading the image during the rendering.");
          break;
        }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

    {
      return null;
    }

    final WaitingImageObserver obs = new WaitingImageObserver(image);
    obs.waitImageLoaded();

    try
    {
      final byte[] data = RenderUtility.encodeImage(image);
      final Image itextimage = Image.getInstance(data);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

    final URL imageURL = ObjectUtilities.getResourceRelative
        ("gorilla.jpg", OpenSourceXMLDemoHandler.class);
    final Image image = Toolkit.getDefaultToolkit().createImage(imageURL);
    final WaitingImageObserver obs = new WaitingImageObserver(image);
    obs.waitImageLoaded();
    report.getParameterValues().put("logo", image);
    return report;
  }

  public JComponent getPresentationComponent()
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      // using manual coding.
      final URL imageURL = ObjectUtilities.getResource
          ("org/pentaho/reporting/engine/classic/demo/opensource/gorilla.jpg", StraightToPNG.class);
      final Image image = Toolkit.getDefaultToolkit().createImage(imageURL);
      final WaitingImageObserver obs = new WaitingImageObserver(image);
      obs.waitImageLoaded();
      report.getParameterValues().put("logo", image);
      return report;
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

      final MasterReport report = generator.parseReport(templateURL);
      final URL imageURL = ObjectUtilities.getResource
          ("org/pentaho/reporting/engine/classic/demo/opensource/gorilla.jpg", StraightToPDF.class);
      final Image image = Toolkit.getDefaultToolkit().createImage(imageURL);
      final WaitingImageObserver obs = new WaitingImageObserver(image);
      obs.waitImageLoaded();
      report.getParameterValues().put("logo", image);

      return report;
    }
    catch (Exception e)
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()

    final double scale = 0.2;
    final double width = 300;
    final double height = 400;

    final WaitingImageObserver obs = new WaitingImageObserver(source);
    obs.waitImageLoaded();

    final BufferedImage bImage = new BufferedImage((int) (width * scale), (int) (height * scale), BufferedImage.TYPE_INT_ARGB);

    final Graphics2D graph = bImage.createGraphics();
    graph.setTransform(AffineTransform.getScaleInstance(scale, scale));
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.WaitingImageObserver.waitImageLoaded()


  public void draw(final Graphics2D graphics2D, final Rectangle2D bounds)
  {
    final WaitingImageObserver obs = new WaitingImageObserver(image);
    obs.waitImageLoaded();

    graphics2D.drawImage(image, 0, 0, image.getWidth(null), image.getHeight(null), null);
  }

  public boolean isKeepAspectRatio()
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.