Class ImageUtil.AtlasImageLoader

java.lang.Object
megamek.common.util.ImageUtil.TileMapImageLoader
megamek.common.util.ImageUtil.AtlasImageLoader
All Implemented Interfaces:
ImageUtil.ImageLoader
Enclosing class:
ImageUtil

public static class ImageUtil.AtlasImageLoader extends ImageUtil.TileMapImageLoader
ImageLoader that loads sub-regions from a larger atlas file, but is given file names that are mapped into an atlas. When constructed, this class reads in a map that maps image files to an atlas image and offset location. When an image file is requested to be opened, it first looks to see if the map contains that file, and if it does return an image from the corresponding key which includes an atlas and offset.