Package mekhq.io
Class AwardFileFactory
java.lang.Object
megamek.common.util.fileUtils.ImageFileFactory
mekhq.io.AwardFileFactory
- All Implemented Interfaces:
FilenameFilter,megamek.common.util.fileUtils.ItemFileFactory
public class AwardFileFactory
extends megamek.common.util.fileUtils.ImageFileFactory
FIXME : I am a band aid that allows award pngs to be loaded despite having features not supported by Java.
FIXME : I should be removed when that is fixed.
-
Field Summary
Fields inherited from class megamek.common.util.fileUtils.ImageFileFactory
GIF, JPEG, JPG, PNG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmegamek.common.util.fileUtils.ItemFilegetItemFile(File file) Get theItemFilefor the givenFile.Methods inherited from class megamek.common.util.fileUtils.ImageFileFactory
accept, accept, createZippedImage, getItemFile
-
Constructor Details
-
AwardFileFactory
public AwardFileFactory()
-
-
Method Details
-
getItemFile
Get theItemFilefor the givenFile.- Specified by:
getItemFilein interfacemegamek.common.util.fileUtils.ItemFileFactory- Overrides:
getItemFilein classmegamek.common.util.fileUtils.ImageFileFactory- Parameters:
file- The inputFileobject that will be read to produce the item. This value must not benull.- Returns:
- an
ItemFilefor the given file.
-