megamek.client.event
Class BoardViewListenerAdapter

java.lang.Object
  extended by megamek.client.event.BoardViewListenerAdapter
All Implemented Interfaces:
java.util.EventListener, BoardViewListener

public class BoardViewListenerAdapter
extends java.lang.Object
implements BoardViewListener

This adapter class provides default implementations for the methods described by the BoardViewListener interface.

Classes that wish to deal with BoardViewEvents can extend this class and override only the methods which they are interested in.

See Also:
BoardViewListener, BoardViewEvent

Constructor Summary
BoardViewListenerAdapter()
           
 
Method Summary
 void boardHexHighlighted(BoardViewEvent b)
          Sent when BoardView 'cursor' is set to Hex.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardViewListenerAdapter

public BoardViewListenerAdapter()
Method Detail

hexMoused

public void hexMoused(BoardViewEvent b)
Sent when user clicks, double clicks or drags hex. The default behavior is to do nothing.

Specified by:
hexMoused in interface BoardViewListener
Parameters:
b - an event

hexCursor

public void hexCursor(BoardViewEvent b)
Sent when BoardView 'cursor' is set to Hex. The default behavior is to do nothing.

Specified by:
hexCursor in interface BoardViewListener
Parameters:
b - an event

boardHexHighlighted

public void boardHexHighlighted(BoardViewEvent b)
Sent when BoardView 'cursor' is set to Hex. The default behavior is to do nothing.

Specified by:
boardHexHighlighted in interface BoardViewListener
Parameters:
b - an event

hexSelected

public void hexSelected(BoardViewEvent b)
Sent when Hex is selected. The default behavior is to do nothing.

Specified by:
hexSelected in interface BoardViewListener
Parameters:
b - an event

firstLOSHex

public void firstLOSHex(BoardViewEvent b)
Sent when firstLOS is set. The default behavior is to do nothing.

Specified by:
firstLOSHex in interface BoardViewListener
Parameters:
b - an event

secondLOSHex

public void secondLOSHex(BoardViewEvent b,
                         Coords c)
Sent when secondLOS is set. The default behavior is to do nothing.

Specified by:
secondLOSHex in interface BoardViewListener
Parameters:
b - an event

finishedMovingUnits

public void finishedMovingUnits(BoardViewEvent b)
Sent when moving units is finished. The default behavior is to do nothing.

Specified by:
finishedMovingUnits in interface BoardViewListener
Parameters:
b - an event

unitSelected

public void unitSelected(BoardViewEvent b)
Sent when Unit is selected. The default behavior is to do nothing.

Specified by:
unitSelected in interface BoardViewListener
Parameters:
b - an event