Class UnitPrintManager

java.lang.Object
megameklab.util.UnitPrintManager

public class UnitPrintManager extends Object
  • Constructor Details

    • UnitPrintManager

      public UnitPrintManager()
  • Method Details

    • printEntity

      public static void printEntity(megamek.common.units.Entity entity)
    • exportEntity

      public static void exportEntity(megamek.common.units.Entity entity, JFrame parent)
    • printMUL

      public static void printMUL(JFrame parent, boolean printToPdf)
    • printMUL

      public static void printMUL(JFrame parent, boolean printToPdf, File file)
    • getExportFile

      public static File getExportFile(Frame parent)
    • getExportFile

      public static File getExportFile(Frame parent, String suggestedFileName)
    • createSheets

      public static List<PrintRecordSheet> createSheets(List<? extends megamek.common.units.BTObject> entities, boolean singlePrint, RecordSheetOptions options)
    • createSheets

      public static List<PrintRecordSheet> createSheets(List<? extends megamek.common.units.BTObject> entities, boolean singlePrint, RecordSheetOptions options, boolean noWarningsOnUnprintable)
    • exportUnits

      public static void exportUnits(List<? extends megamek.common.units.BTObject> units, File exportFile, boolean singlePrint)
    • exportUnits

      public static void exportUnits(List<? extends megamek.common.units.BTObject> units, File exportFile, boolean singlePrint, RecordSheetOptions options)
    • printAllUnits

      public static void printAllUnits(List<? extends megamek.common.units.BTObject> loadedUnits, boolean singlePrint)
      Creates and runs a print job using the default record sheet options
      Parameters:
      loadedUnits - The units to print
      singlePrint - Whether to limit each record sheet to a single unit
    • printAllUnits

      public static boolean printAllUnits(List<? extends megamek.common.units.BTObject> loadedUnits, boolean singlePrint, RecordSheetOptions options)
      Creates and runs a print job using the provided record sheet options
      Parameters:
      loadedUnits - The units to print
      singlePrint - Whether to limit each record sheet to a single unit
      options - The options to use for this print job
    • printSelectedUnit

      public static void printSelectedUnit(JFrame parent, boolean pdf)
    • printUnitFile

      public static void printUnitFile(JFrame parent, boolean singleUnit, boolean pdf)