|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BoardViewListener
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.
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 |
|---|
void hexMoused(BoardViewEvent b)
b - an eventvoid hexCursor(BoardViewEvent b)
b - an eventvoid boardHexHighlighted(BoardViewEvent b)
b - an eventvoid hexSelected(BoardViewEvent b)
b - an eventvoid firstLOSHex(BoardViewEvent b)
b - an event
void secondLOSHex(BoardViewEvent b,
Coords c)
b - an eventvoid finishedMovingUnits(BoardViewEvent b)
b - an eventvoid unitSelected(BoardViewEvent b)
b - an event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||