megamek.client.ui
Interface IBoardView

All Superinterfaces:
java.util.EventListener, MechDisplayListener
All Known Implementing Classes:
BoardView1, BoardView1, BoardView3D

public interface IBoardView
extends MechDisplayListener


Method Summary
 void addAttack(AttackAction saa)
           
 void addBoardViewListener(BoardViewListener listener)
          Adds the specified board view listener to receive events from this view.
 void addDisplayable(IDisplayable d)
           
 void addKeyListener(java.awt.event.KeyListener k)
           
 void centerOnHex(Coords position)
           
 void checkLOS(Coords c)
           
 void clearMovementData()
           
 void cursor(Coords coords)
          Determines if this Board contains the Coords, and if so, "cursors" that Coords.
 void drawMovementData(Entity ce, MovePath cmd)
           
 void drawRuler(Coords start, Coords end, java.awt.Color startColor, java.awt.Color endColor)
           
 java.awt.Component getComponent()
           
 Coords getLastCursor()
           
 Player getLocalPlayer()
           
 Coords getSelected()
           
 ITilesetManager getTilesetManager()
           
 void hideTooltip()
           
 void highlight(Coords coords)
          Determines if this Board contains the Coords, and if so, highlights that Coords.
 boolean isMovingUnits()
           
 void markDeploymentHexesFor(Entity ce)
           
 void processBoardViewEvent(BoardViewEvent event)
          Notifies attached board listeners of the event.
 void redrawEntity(Entity ce)
           
 void refreshAttacks()
           
 void refreshDisplayables()
           
 void refreshMinefields()
           
 void removeAttacksFor(Entity ce)
           
 void removeBoardViewListener(BoardViewListener listener)
          Removes the specified board listener.
 void select(Coords coords)
          Determines if this Board contains the Coords, and if so, "selects" that Coords.
 void setFirstLOS(Coords firstLOS)
           
 void setLocalPlayer(Player localPlayer)
           
 void showPopup(java.lang.Object popup, Coords c)
           
 boolean toggleIsometric()
           
 void zoomIn()
           
 void zoomOut()
           
 
Methods inherited from interface megamek.client.event.MechDisplayListener
WeaponSelected
 

Method Detail

addAttack

void addAttack(AttackAction saa)

refreshAttacks

void refreshAttacks()

removeAttacksFor

void removeAttacksFor(Entity ce)

refreshMinefields

void refreshMinefields()

markDeploymentHexesFor

void markDeploymentHexesFor(Entity ce)

redrawEntity

void redrawEntity(Entity ce)

drawMovementData

void drawMovementData(Entity ce,
                      MovePath cmd)

clearMovementData

void clearMovementData()

isMovingUnits

boolean isMovingUnits()

addDisplayable

void addDisplayable(IDisplayable d)

refreshDisplayables

void refreshDisplayables()

drawRuler

void drawRuler(Coords start,
               Coords end,
               java.awt.Color startColor,
               java.awt.Color endColor)

getTilesetManager

ITilesetManager getTilesetManager()

getLocalPlayer

Player getLocalPlayer()

setLocalPlayer

void setLocalPlayer(Player localPlayer)

zoomIn

void zoomIn()

zoomOut

void zoomOut()

toggleIsometric

boolean toggleIsometric()

centerOnHex

void centerOnHex(Coords position)

showPopup

void showPopup(java.lang.Object popup,
               Coords c)

hideTooltip

void hideTooltip()

addKeyListener

void addKeyListener(java.awt.event.KeyListener k)

getComponent

java.awt.Component getComponent()

getLastCursor

Coords getLastCursor()
Returns:
Returns the lastCursor.

getSelected

Coords getSelected()
Returns:
Returns the selected.

setFirstLOS

void setFirstLOS(Coords firstLOS)
Parameters:
firstLOS - The firstLOS to set.

select

void select(Coords coords)
Determines if this Board contains the Coords, and if so, "selects" that Coords.

Parameters:
coords - the Coords.

highlight

void highlight(Coords coords)
Determines if this Board contains the Coords, and if so, highlights that Coords.

Parameters:
coords - the Coords.

cursor

void cursor(Coords coords)
Determines if this Board contains the Coords, and if so, "cursors" that Coords.

Parameters:
coords - the Coords.

checkLOS

void checkLOS(Coords c)

addBoardViewListener

void addBoardViewListener(BoardViewListener listener)
Adds the specified board view listener to receive events from this view.

Parameters:
listener - the board listener.
See Also:
BoardViewListener

removeBoardViewListener

void removeBoardViewListener(BoardViewListener listener)
Removes the specified board listener.

Parameters:
listener - the board listener.

processBoardViewEvent

void processBoardViewEvent(BoardViewEvent event)
Notifies attached board listeners of the event.

Parameters:
event - the board event.