Package megamek.common.util
Class ImageUtil.AWTImageLoader
java.lang.Object
megamek.common.util.ImageUtil.AWTImageLoader
- All Implemented Interfaces:
ImageUtil.ImageLoader
- Enclosing class:
ImageUtil
ImageLoader implementation that expects a path to an image file, and that file is loaded directly and the loaded
image is returned.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AWTImageLoader
public AWTImageLoader()
-
-
Method Details
-
loadImage
Description copied from interface:ImageUtil.ImageLoaderGiven a string representation of a file,- Specified by:
loadImagein interfaceImageUtil.ImageLoader- Parameters:
fileName- File to load.- Returns:
- An
Imageobject
-