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 TypeMethodDescriptionvoid
void
void
protected Element
createTableBody
(double x, double y, double width, double height, float fontSize) int
protected void
setColOffsets
(Collection<Double> offsets) void
setColumnAnchor
(int column, String anchor) void
setColumnWeight
(int column, String weight) void
setDefaultAnchor
(String defaultAnchor) void
setHeaders
(String... items) void
setHeaders
(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:
createTableBody
in classReferenceTableBase
-