java.lang.Object
org.rrd4j.graph.RrdGraphDef.UrlImageSource
All Implemented Interfaces:
RrdGraphDef.ImageSource
Enclosing class:
RrdGraphDef

private static class RrdGraphDef.UrlImageSourceextends Object implements RrdGraphDef.ImageSource
UrlImageSource class.
  • Field Details

    • imagesource

      private final URL imagesource
      The image URL to embed.
  • Constructor Details

    • UrlImageSource

      private UrlImageSource(URL imagesource)
      Names the image URL to embed.
      Parameters:
      imagesource - where the image is
  • Method Details

    • apply

      public BufferedImage apply(int w, int h) throws IOException
      Decode the image at the URL into a BufferedImage.
      Specified by:
      apply in interface RrdGraphDef.ImageSource
      Parameters:
      w - the width of the requested image
      h - the high of the requested image
      Returns:
      an image to draw.
      Throws:
      IOException - if an error occurs during image reading or generation