Package megamek.client.ui.widget.picmap
Class PMMultiLineLabel
java.lang.Object
megamek.client.ui.widget.picmap.PMSimpleLabel
megamek.client.ui.widget.picmap.PMMultiLineLabel
This is a label that can stretch across multiple lines
-
Field Summary
Fields inherited from class megamek.client.ui.widget.picmap.PMSimpleLabel
drawScale, outlined, width -
Constructor Summary
ConstructorsConstructorDescriptionPMMultiLineLabel(FontMetrics fontMetrics, Color color) Constructs a new multi-line label -
Method Summary
Methods inherited from class megamek.client.ui.widget.picmap.PMSimpleLabel
drawOutlinedString, getBounds, getDescent, getSize, moveTo, setColor, setDrawScale, setOutlined, setString, setVisible, translate
-
Constructor Details
-
PMMultiLineLabel
Constructs a new multi-line label- Parameters:
fontMetrics- Font metrics objectcolor- Color for the text on this label
-
-
Method Details
-
clear
public void clear()Clear the contents of this multi-line label -
addString
Add a string to this multi-line label- Parameters:
s- The string to add
-
drawInto
Description copied from interface:PMElementDraws element into specified Graphics.- Specified by:
drawIntoin interfacePMElement- Overrides:
drawIntoin classPMSimpleLabel
-