Class ASChassisView

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class ASChassisView extends BuildView implements ActionListener, ChangeListener
Structure tab chassis panel for aerospace and conventional fighters.
See Also:
  • Field Details

  • Constructor Details

    • ASChassisView

      public ASChassisView(megamek.common.interfaces.ITechManager techManager)
  • Method Details

    • addListener

      public void addListener(AeroBuildListener l)
    • removeListener

      public void removeListener(AeroBuildListener l)
    • initUI

      public void initUI()
    • setFromEntity

      public void setFromEntity(megamek.common.units.Aero aero)
    • setAsCustomization

      public void setAsCustomization()
    • getEngineRating

      public int getEngineRating()
    • setEngineRating

      public void setEngineRating(int rating)
    • refresh

      public void refresh()
    • getAvailableEngines

      public List<megamek.common.equipment.Engine> getAvailableEngines()
    • isPrimitive

      public boolean isPrimitive()
    • isConventional

      public boolean isConventional()
    • getTonnage

      public double getTonnage()
    • setTonnage

      public void setTonnage(double tonnage)
    • isOmni

      public boolean isOmni()
    • setOmni

      public void setOmni(boolean omni)
    • isVSTOL

      public boolean isVSTOL()
    • setVSTOL

      public void setVSTOL(boolean vstol)
    • getFighterType

      public int getFighterType()
    • getEngine

      public megamek.common.equipment.Engine getEngine()
    • setEngine

      public void setEngine(megamek.common.equipment.Engine engine)
      Select the first engine in the list that matches engine type and flags, ignoring large engine flag. If no match can be found based on type and flags, disregards flags as well.
      Parameters:
      engine - The engine to match
    • getCockpitType

      public int getCockpitType()
    • setCockpitType

      public void setCockpitType(int cockpit)
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener