megamek.client.ui.swing.widget
Class PMValueLabel

java.lang.Object
  extended by megamek.client.ui.swing.widget.PMSimpleLabel
      extended by megamek.client.ui.swing.widget.PMValueLabel
All Implemented Interfaces:
PMElement, PMLabel

public class PMValueLabel
extends PMSimpleLabel


Field Summary
 
Fields inherited from class megamek.client.ui.swing.widget.PMSimpleLabel
color, descent, f, fm, height, string, visible, width, x, y
 
Constructor Summary
PMValueLabel(java.awt.FontMetrics fm, java.awt.Color c)
           
 
Method Summary
 void drawInto(java.awt.Graphics g)
          Draws element into specifyed Graphics.
 java.awt.Rectangle getBounds()
          Return bounding box of element.
(package private)  void setValue(java.lang.String v)
           
 void setVisible(boolean v)
          Sets visibility of element
 
Methods inherited from class megamek.client.ui.swing.widget.PMSimpleLabel
getDescent, getSize, moveTo, setColor, setString, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMValueLabel

PMValueLabel(java.awt.FontMetrics fm,
             java.awt.Color c)
Method Detail

setValue

void setValue(java.lang.String v)

setVisible

public void setVisible(boolean v)
Description copied from interface: PMElement
Sets visibility of element

Specified by:
setVisible in interface PMElement
Overrides:
setVisible in class PMSimpleLabel

drawInto

public void drawInto(java.awt.Graphics g)
Description copied from interface: PMElement
Draws element into specifyed Graphics.

Specified by:
drawInto in interface PMElement
Overrides:
drawInto in class PMSimpleLabel

getBounds

public java.awt.Rectangle getBounds()
Description copied from interface: PMElement
Return bounding box of element.

Specified by:
getBounds in interface PMElement
Overrides:
getBounds in class PMSimpleLabel