megamek.client.ui.AWT
Class MechDisplay.WeaponPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by megamek.client.ui.AWT.widget.BufferedPanel
                  extended by megamek.client.ui.AWT.MechDisplay.WeaponPanel
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
Enclosing class:
MechDisplay

 class MechDisplay.WeaponPanel
extends BufferedPanel
implements java.awt.event.ItemListener

This class contains the all the gizmos for firing the mech's weapons.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 TransparentLabel currentHeatBuildupL
           
 TransparentLabel currentHeatBuildupR
           
 java.awt.Choice m_chAmmo
           
 java.awt.Choice m_chBayWeapon
           
 java.awt.TextArea toHitText
           
 TransparentLabel wAmmo
           
 TransparentLabel wArcHeatL
           
 TransparentLabel wArcHeatR
           
 TransparentLabel wAVL
           
 TransparentLabel wBayWeapon
           
 TransparentLabel wDamL
           
 TransparentLabel wDamR
           
 java.awt.List weaponList
           
 TransparentLabel wExtAVR
           
 TransparentLabel wExtL
           
 TransparentLabel wExtR
           
 TransparentLabel wHeatL
           
 TransparentLabel wHeatR
           
 TransparentLabel wLongAVR
           
 TransparentLabel wLongL
           
 TransparentLabel wLongR
           
 TransparentLabel wMedAVR
           
 TransparentLabel wMedL
           
 TransparentLabel wMedR
           
 TransparentLabel wMinL
           
 TransparentLabel wMinR
           
 TransparentLabel wNameL
           
 TransparentLabel wNameR
           
 TransparentLabel wRangeL
           
 TransparentLabel wRangeR
           
 TransparentLabel wShortAVR
           
 TransparentLabel wShortL
           
 TransparentLabel wShortR
           
 TransparentLabel wTargetL
           
 TransparentLabel wTargetR
           
 TransparentLabel wToHitL
           
 TransparentLabel wToHitR
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MechDisplay.WeaponPanel(ClientGUI client, MechDisplay owner)
           
 
Method Summary
 void displayMech(Entity en)
          updates fields for the specified mech

fix the ammo when it's added

 int getSelectedWeaponNum()
          Selects the weapon at the specified index in the list
 void itemStateChanged(java.awt.event.ItemEvent ev)
           
 void selectWeapon(int wn)
          Selects the weapon at the specified index in the list
 
Methods inherited from class megamek.client.ui.AWT.widget.BufferedPanel
addBgDrawer, componentHidden, componentMoved, componentResized, componentShown, getPreferredSize, paint, removeBgDrawer, removeBgDrawers, setPreferredSize, setPreferredSize, update
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

weaponList

public java.awt.List weaponList

m_chAmmo

public java.awt.Choice m_chAmmo

m_chBayWeapon

public java.awt.Choice m_chBayWeapon

wAmmo

public TransparentLabel wAmmo

wNameL

public TransparentLabel wNameL

wHeatL

public TransparentLabel wHeatL

wArcHeatL

public TransparentLabel wArcHeatL

wDamL

public TransparentLabel wDamL

wMinL

public TransparentLabel wMinL

wShortL

public TransparentLabel wShortL

wMedL

public TransparentLabel wMedL

wLongL

public TransparentLabel wLongL

wExtL

public TransparentLabel wExtL

wAVL

public TransparentLabel wAVL

wBayWeapon

public TransparentLabel wBayWeapon

wNameR

public TransparentLabel wNameR

wHeatR

public TransparentLabel wHeatR

wArcHeatR

public TransparentLabel wArcHeatR

wDamR

public TransparentLabel wDamR

wMinR

public TransparentLabel wMinR

wShortR

public TransparentLabel wShortR

wMedR

public TransparentLabel wMedR

wLongR

public TransparentLabel wLongR

wExtR

public TransparentLabel wExtR

wShortAVR

public TransparentLabel wShortAVR

wMedAVR

public TransparentLabel wMedAVR

wLongAVR

public TransparentLabel wLongAVR

wExtAVR

public TransparentLabel wExtAVR

currentHeatBuildupL

public TransparentLabel currentHeatBuildupL

currentHeatBuildupR

public TransparentLabel currentHeatBuildupR

wTargetL

public TransparentLabel wTargetL

wRangeL

public TransparentLabel wRangeL

wToHitL

public TransparentLabel wToHitL

wTargetR

public TransparentLabel wTargetR

wRangeR

public TransparentLabel wRangeR

wToHitR

public TransparentLabel wToHitR

toHitText

public java.awt.TextArea toHitText
Constructor Detail

MechDisplay.WeaponPanel

public MechDisplay.WeaponPanel(ClientGUI client,
                               MechDisplay owner)
Method Detail

displayMech

public void displayMech(Entity en)
updates fields for the specified mech

fix the ammo when it's added


selectWeapon

public void selectWeapon(int wn)
Selects the weapon at the specified index in the list


getSelectedWeaponNum

public int getSelectedWeaponNum()
Selects the weapon at the specified index in the list


itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ev)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener