Class PrintCapitalShip

All Implemented Interfaces:
Printable, IdConstants

public class PrintCapitalShip extends PrintDropship
Generates a record sheet image for JumpShips, WarShips, and space stations.
  • Field Details

    • ARMOR_PIP_WIDTH

      public static final double ARMOR_PIP_WIDTH
      Default width for armor pip
      See Also:
    • ARMOR_PIP_HEIGHT

      public static final double ARMOR_PIP_HEIGHT
      Default height for armor pip
      See Also:
    • SHADOW_OFFSET

      public static final double SHADOW_OFFSET
      Amount to offset the armor block drop shadow as a fraction of pip height/width
      See Also:
    • IS_PIP_WIDTH

      public static final int IS_PIP_WIDTH
      Default width for structure pips
      See Also:
    • IS_PIP_HEIGHT

      public static final int IS_PIP_HEIGHT
      Default height for structure pips
      See Also:
    • PIPS_PER_ROW

      public static final int PIPS_PER_ROW
      Default width of armor block in number of pips
      See Also:
    • MAX_PIP_ROWS

      public static final int MAX_PIP_ROWS
      Default height of armor block in number of pips
      See Also:
  • Constructor Details

    • PrintCapitalShip

      public PrintCapitalShip(megamek.common.units.Jumpship ship, int startPage, RecordSheetOptions options)
      Creates an SVG object for the record sheet
      Parameters:
      ship - The ship 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)
      Overrides:
      getSVGFileName in class PrintDropship
      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
    • getRecordSheetTitle

      protected String getRecordSheetTitle()
      Overrides:
      getRecordSheetTitle in class PrintDropship
      Returns:
      The title to use for the record sheet
    • drawStructure

      protected void drawStructure()
      Overrides:
      drawStructure in class PrintEntity
    • drawArmorStructurePips

      protected void drawArmorStructurePips()
      Description copied from class: PrintEntity
      Add armor and structure pips for each location.
      Overrides:
      drawArmorStructurePips in class PrintAero
    • supportsAlternateArmorGrouping

      public boolean supportsAlternateArmorGrouping()
      Overrides:
      supportsAlternateArmorGrouping in class PrintDropship