megamek.client.event
Interface BoardViewListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AbstractPhaseDisplay, AbstractPhaseDisplay, BoardViewListenerAdapter, ChatLounge, ChatLounge, ClientGUI, ClientGUI, DeploymentDisplay, DeploymentDisplay, DeployMinefieldDisplay, DeployMinefieldDisplay, FiringDisplay, FiringDisplay, MovementDisplay, MovementDisplay, PhysicalDisplay, PhysicalDisplay, ReportDisplay, ReportDisplay, Ruler, Ruler, SelectArtyAutoHitHexDisplay, SelectArtyAutoHitHexDisplay, StatusBarPhaseDisplay, StatusBarPhaseDisplay, TargetingPhaseDisplay, TargetingPhaseDisplay

public interface BoardViewListener
extends java.util.EventListener

Classes which implement this interface provide methods that deal with the events that are generated when the BoardView is changed.

After creating an instance of a class that implements this interface it can be added to a Board using the addBoardViewListener method and removed using the removeBoardViewListener method. When BoardView is changed the appropriate method will be invoked.

See Also:
BoardViewListenerAdapter, BoardViewEvent

Method Summary
 void boardHexHighlighted(BoardViewEvent b)
          Sent when Hex is highlighted.
 void finishedMovingUnits(BoardViewEvent b)
          Sent when moving units is finished.
 void firstLOSHex(BoardViewEvent b)
          Sent when firstLOS is set.
 void hexCursor(BoardViewEvent b)
          Sent when BoardView 'cursor' is set to Hex.
 void hexMoused(BoardViewEvent b)
          Sent when user clicks, double clicks or drags hex.
 void hexSelected(BoardViewEvent b)
          Sent when Hex is selected.
 void secondLOSHex(BoardViewEvent b, Coords c)
          Sent when secondLOS is set.
 void unitSelected(BoardViewEvent b)
          Sent when Unit is selected.
 

Method Detail

hexMoused

void hexMoused(BoardViewEvent b)
Sent when user clicks, double clicks or drags hex.

Parameters:
b - an event

hexCursor

void hexCursor(BoardViewEvent b)
Sent when BoardView 'cursor' is set to Hex.

Parameters:
b - an event

boardHexHighlighted

void boardHexHighlighted(BoardViewEvent b)
Sent when Hex is highlighted.

Parameters:
b - an event

hexSelected

void hexSelected(BoardViewEvent b)
Sent when Hex is selected.

Parameters:
b - an event

firstLOSHex

void firstLOSHex(BoardViewEvent b)
Sent when firstLOS is set.

Parameters:
b - an event

secondLOSHex

void secondLOSHex(BoardViewEvent b,
                  Coords c)
Sent when secondLOS is set.

Parameters:
b - an event

finishedMovingUnits

void finishedMovingUnits(BoardViewEvent b)
Sent when moving units is finished.

Parameters:
b - an event

unitSelected

void unitSelected(BoardViewEvent b)
Sent when Unit is selected.

Parameters:
b - an event