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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    megamek.common.util.fileUtils.ItemFile
    Get the ItemFile for the given File.

    Methods inherited from class megamek.common.util.fileUtils.ImageFileFactory

    accept, accept, createZippedImage, getItemFile

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AwardFileFactory

      public AwardFileFactory()
  • Method Details

    • getItemFile

      public megamek.common.util.fileUtils.ItemFile getItemFile(File file)
      Get the ItemFile for the given File.
      Specified by:
      getItemFile in interface megamek.common.util.fileUtils.ItemFileFactory
      Overrides:
      getItemFile in class megamek.common.util.fileUtils.ImageFileFactory
      Parameters:
      file - The input File object that will be read to produce the item. This value must not be null.
      Returns:
      an ItemFile for the given file.