Class PMMultiLineLabel

java.lang.Object
megamek.client.ui.widget.picmap.PMSimpleLabel
megamek.client.ui.widget.picmap.PMMultiLineLabel
All Implemented Interfaces:
PMElement, PMLabel

public class PMMultiLineLabel extends PMSimpleLabel
This is a label that can stretch across multiple lines
  • Constructor Details

    • PMMultiLineLabel

      public PMMultiLineLabel(FontMetrics fontMetrics, Color color)
      Constructs a new multi-line label
      Parameters:
      fontMetrics - Font metrics object
      color - Color for the text on this label
  • Method Details

    • clear

      public void clear()
      Clear the contents of this multi-line label
    • addString

      public void addString(String s)
      Add a string to this multi-line label
      Parameters:
      s - The string to add
    • drawInto

      public void drawInto(Graphics g)
      Description copied from interface: PMElement
      Draws element into specified Graphics.
      Specified by:
      drawInto in interface PMElement
      Overrides:
      drawInto in class PMSimpleLabel