Class PrintBattleArmor

All Implemented Interfaces:
Printable, IdConstants

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

    • PrintBattleArmor

      public PrintBattleArmor(megamek.common.battleArmor.BattleArmor battleArmor, int squadIndex, int startPage, RecordSheetOptions options)
      Creates an SVG object for the record sheet
      Parameters:
      battleArmor - The battlearmor to print
      squadIndex - The index of this unit on the page
      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
    • formatWalk

      protected String formatWalk()
      Overrides:
      formatWalk in class PrintEntity
    • supportsAlternateArmorGrouping

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

      public String formatMiscNotes()
      Description copied from class: PrintEntity
      Space for various miscellaneous notes about the unit, such as restrictions.
      Overrides:
      formatMiscNotes in class PrintEntity
      Returns:
      A list of misc notes, or an empty String if none