Interface RrdGraphDef.ImageSource

Enclosing class:
RrdGraphDef

public static interface RrdGraphDef.ImageSource

Implementations of this class can be used to generate image than can be layered on graph. The can be used for background image, a background image draw on canvas or an overlay image.

Author:
Fabrice Bacchella
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int w, int h)
    A image of the required size that will be applied.
  • Method Details

    • apply

      BufferedImage apply(int w, int h) throws IOException
      A image of the required size that will be applied. If the generated image is too big, it will be clipped before being applied.
      Parameters:
      w - the width of the requested image
      h - the high of the requested image
      Returns:
      an image to draw.
      Throws:
      IOException