- All Known Implementing Classes:
RrdGraphDef.FileImageSource, RrdGraphDef.UrlImageSource
- 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.
Method Summary
All MethodsModifier and TypeMethodDescriptionapply(int w, int h) A image of the required size that will be applied.
Method Details
apply
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 imageh- the high of the requested image- Returns:
- an image to draw.
- Throws:
IOException- if an error occurs during image reading or generation