Class PrintInfantry

All Implemented Interfaces:
Printable, IdConstants

public class PrintInfantry extends PrintEntity
Lays out a record sheet block for a single infantry unit
  • Constructor Details

    • PrintInfantry

      public PrintInfantry(megamek.common.units.Infantry infantry, int startPage, RecordSheetOptions options)
      Creates an SVG object for the record sheet
      Parameters:
      infantry - The infantry to print
      startPage - The print job page number for this sheet
      options - Overrides the global options for which elements are printed
  • Method Details

    • getSVGFileName

      protected String getSVGFileName(int pageNumber)
      Specified by:
      getSVGFileName in class PrintRecordSheet
      Parameters:
      pageNumber - The page number in the current record sheet, where the first page is numbered zero.
      Returns:
      The file name for the current page in the record sheet image directory
    • getEntity

      public megamek.common.units.Entity getEntity()
      Specified by:
      getEntity in class PrintEntity
    • getRecordSheetTitle

      protected String getRecordSheetTitle()
      Specified by:
      getRecordSheetTitle in class PrintRecordSheet
      Returns:
      The title to use for the record sheet
    • writeTextFields

      protected void writeTextFields()
      Overrides:
      writeTextFields in class PrintEntity
    • drawArmor

      protected void drawArmor()
      Overrides:
      drawArmor in class PrintEntity
    • supportsAlternateArmorGrouping

      protected boolean supportsAlternateArmorGrouping()
      Specified by:
      supportsAlternateArmorGrouping in class PrintEntity