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

public abstract class ReferenceTable extends ReferenceTableBase
Base class for reference tables that format contents into a grid, with optional footnotes
  • Constructor Details

  • Method Details

    • setColOffsets

      protected void setColOffsets(Collection<Double> offsets)
    • setHeaders

      public void setHeaders(String... items)
    • setHeaders

      public void setHeaders(List<String> headers)
    • addRow

      public void addRow(String... items)
    • addRow

      public void addRow(List<String> row)
    • setDefaultAnchor

      public void setDefaultAnchor(String defaultAnchor)
    • setColumnAnchor

      public void setColumnAnchor(int column, String anchor)
    • setColumnWeight

      public void setColumnWeight(int column, String weight)
    • addNote

      public void addNote(String note)
    • lineCount

      public int lineCount()
    • createTableBody

      protected Element createTableBody(double x, double y, double width, double height, float fontSize)
      Specified by:
      createTableBody in class ReferenceTableBase