java.lang.Object
org.rrd4j.graph.RrdGraphDef.FileImageSource
- All Implemented Interfaces:
RrdGraphDef.ImageSource
- Enclosing class:
RrdGraphDef
FileImageSource class.
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
All Methods
Field Details
imagesource
The image file to embed.
Constructor Details
FileImageSource
FileImageSource(String imagesource) Names the image file to embed.- Parameters:
imagesource- the file's path
Method Details
apply
Decode the image file into a BufferedImage.- Specified by:
applyin interfaceRrdGraphDef.ImageSource- 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