megamek.client.ui.swing.widget
Class PilotMapSet

java.lang.Object
  extended by megamek.client.ui.swing.widget.PilotMapSet
All Implemented Interfaces:
DisplayMapSet

public class PilotMapSet
extends java.lang.Object
implements DisplayMapSet

Set of elements to reperesent pilot information in MechDisplay


Constructor Summary
PilotMapSet(javax.swing.JComponent c)
          This constructor have to be called anly from addNotify() method
 
Method Summary
 java.util.Vector<BackGroundDrawer> getBackgroundDrawers()
           
 PMAreasGroup getContentGroup()
           
 java.awt.Image getPortrait(Pilot pilot)
          Get the portrait for the given pilot.
 void setEntity(Entity en)
          updates fields for the unit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PilotMapSet

public PilotMapSet(javax.swing.JComponent c)
This constructor have to be called anly from addNotify() method

Method Detail

setEntity

public void setEntity(Entity en)
updates fields for the unit

Specified by:
setEntity in interface DisplayMapSet

getContentGroup

public PMAreasGroup getContentGroup()
Specified by:
getContentGroup in interface DisplayMapSet

getBackgroundDrawers

public java.util.Vector<BackGroundDrawer> getBackgroundDrawers()
Specified by:
getBackgroundDrawers in interface DisplayMapSet

getPortrait

public java.awt.Image getPortrait(Pilot pilot)
Get the portrait for the given pilot.

Returns:
The Image of the pilot's portrait. This value will be null if no portrait was selected or if there was an error loading it.