Class ConfigurableMekViewPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
megamek.client.ui.dialogs.unitSelectorDialogs.ConfigurableMekViewPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ConfigurableMekViewPanel extends JPanel
This class wraps the MekView / MekViewPanel and gives it a toolbar to choose font, open the MUL and copy the contents.
See Also:
  • Constructor Details

    • ConfigurableMekViewPanel

      public ConfigurableMekViewPanel(@Nullable Entity entity)
      Constructs a panel with the given unit to display.
      Parameters:
      entity - The Entity to display
    • ConfigurableMekViewPanel

      public ConfigurableMekViewPanel()
      Construct a new panel without a unit to display.
  • Method Details

    • setEntity

      public void setEntity(@Nullable Entity entity)
      Set the panel to display the given element.
      Parameters:
      entity - The Entity to display
    • reset

      public void reset()
    • toggleMenu

      public void toggleMenu(boolean menuVisible)