Class SBFRecordSheetBook
java.lang.Object
megamek.common.strategicBattleSystems.SBFRecordSheetBook
- All Implemented Interfaces:
Printable
This class represents a collection of Strategic BattleForce sheets. It implements
Printable and can be
printed using Java2D printing, see PrinterJob.-
Field Summary
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
ConstructorsConstructorDescriptionSBFRecordSheetBook(Collection<SBFFormation> formations) Deprecated, for removal: This API element is subject to removal in a future version.SBFRecordSheetBook(Collection<SBFFormation> formations, Font headerFont, Font valueFont) Constructs a new collection of Strategic BattleForce sheets for the given formations. -
Method Summary
Modifier and TypeMethodDescriptionintprint(Graphics graphics, PageFormat pageFormat, int pageIndex)
-
Constructor Details
-
SBFRecordSheetBook
public SBFRecordSheetBook(Collection<SBFFormation> formations, @Nullable Font headerFont, @Nullable Font valueFont) Constructs a new collection of Strategic BattleForce sheets for the given formations. Formations must not be null. If formations is empty, a single empty record sheet (usable for manual fill-in is printed. The given fonts are used for the sheets' texts.- Parameters:
formations- The formations to print sheets for.headerFont- The font to use for headers and fixed texts. The size of the font doesn't mattervalueFont- The font to use for formation values. The size of the font doesn't matter
-
SBFRecordSheetBook
@Deprecated(since="0.51.0", forRemoval=true) public SBFRecordSheetBook(Collection<SBFFormation> formations) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new collection of Strategic BattleForce sheets for the given formations. Formations must not be null. If formations is empty, a single empty record sheet (usable for manual fill-in is printed.- Parameters:
formations- The formations to print sheets for.
-
-
Method Details
-
print
- Specified by:
printin interfacePrintable- Throws:
PrinterException
-