megamek.client.ui.AWT
Class MapMenu

java.lang.Object
  extended by java.awt.MenuComponent
      extended by java.awt.MenuItem
          extended by java.awt.Menu
              extended by java.awt.PopupMenu
                  extended by megamek.client.ui.AWT.MapMenu
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class MapMenu
extends java.awt.PopupMenu
implements java.awt.event.ActionListener

Context menu for the board.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.PopupMenu
java.awt.PopupMenu.AccessibleAWTPopupMenu
 
Nested classes/interfaces inherited from class java.awt.Menu
java.awt.Menu.AccessibleAWTMenu
 
Nested classes/interfaces inherited from class java.awt.MenuItem
java.awt.MenuItem.AccessibleAWTMenuItem
 
Nested classes/interfaces inherited from class java.awt.MenuComponent
java.awt.MenuComponent.AccessibleAWTMenuComponent
 
Field Summary
(package private)  IBoard board
           
(package private)  Client client
           
(package private)  Coords coords
           
(package private)  java.awt.Component currentPanel
           
(package private)  IGame game
           
(package private)  ClientGUI gui
           
(package private)  Entity myEntity
           
(package private)  Targetable myTarget
           
(package private)  GameOptions options
           
(package private)  Entity selectedEntity
           
 
Constructor Summary
MapMenu(Coords coords, Client client, java.awt.Component panel, ClientGUI gui)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
(package private)  void plotCourse(java.awt.event.ActionEvent e)
           
 void show(java.awt.Component comp, int x, int y)
           
 
Methods inherited from class java.awt.PopupMenu
addNotify, getAccessibleContext, getParent
 
Methods inherited from class java.awt.Menu
add, add, addSeparator, countItems, getItem, getItemCount, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify
 
Methods inherited from class java.awt.MenuItem
addActionListener, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
 
Methods inherited from class java.awt.MenuComponent
dispatchEvent, getFont, getName, getPeer, getTreeLock, postEvent, setFont, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

coords

Coords coords

game

IGame game

currentPanel

java.awt.Component currentPanel

board

IBoard board

options

GameOptions options

client

Client client

gui

ClientGUI gui

selectedEntity

Entity selectedEntity

myEntity

Entity myEntity

myTarget

Targetable myTarget
Constructor Detail

MapMenu

public MapMenu(Coords coords,
               Client client,
               java.awt.Component panel,
               ClientGUI gui)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

plotCourse

void plotCourse(java.awt.event.ActionEvent e)

show

public void show(java.awt.Component comp,
                 int x,
                 int y)
Overrides:
show in class java.awt.PopupMenu