Package megameklab.printing.reference
Class ReferenceTable
java.lang.Object
megameklab.printing.reference.ReferenceTableBase
megameklab.printing.reference.ReferenceTable
- Direct Known Subclasses:
AeroHitLocation,AeroToHitMods,AirToGroundAttackTable,AntiMekAttackTable,ChangingFacingCostTable,ClusterHitsTable,ControlRollTable,DrivingSkillRollMods,GroundToHitMods,KickLocation,MekFallTable,MekHitLocation,MovementCost,NotesTable,PhysicalAttacks,ProtoMekSpecialHitLocation,PunchKickLocation,PunchLocation,RandomMovementTable,StraightMovementTable,SwarmAttackHitLocation
Base class for reference tables that format contents into a grid, with optional footnotes
-
Field Summary
Fields inherited from class megameklab.printing.reference.ReferenceTableBase
bundle, NO_SHADE, SECTION_HEADER -
Constructor Summary
ConstructorsConstructorDescriptionReferenceTable(PrintRecordSheet sheet) ReferenceTable(PrintRecordSheet sheet, double... colOffsets) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprotected ElementcreateTableBody(double x, double y, double width, double height, float fontSize) intprotected voidsetColOffsets(Collection<Double> offsets) voidsetColumnAnchor(int column, String anchor) voidsetColumnWeight(int column, String weight) voidsetDefaultAnchor(String defaultAnchor) voidsetHeaders(String... items) voidsetHeaders(List<String> headers) Methods inherited from class megameklab.printing.reference.ReferenceTableBase
createRoundedBorder, createShadeElement, createTable, createTable, createTextElement, createTextElement, formatStyle, getMargins, getTitle
-
Constructor Details
-
ReferenceTable
-
ReferenceTable
-
-
Method Details
-
setColOffsets
-
setHeaders
-
setHeaders
-
addRow
-
addRow
-
setDefaultAnchor
-
setColumnAnchor
-
setColumnWeight
-
addNote
-
lineCount
public int lineCount() -
createTableBody
- Specified by:
createTableBodyin classReferenceTableBase
-