Internet Chess ToolKit
v0.2.0

ictk.boardgame.ui
Interface BoardDisplay

All Superinterfaces:
BoardListener, java.util.EventListener
All Known Subinterfaces:
CLIBoardDisplay, CLIChessBoardDisplay
All Known Implementing Classes:
TxChessBoardDisplay

public interface BoardDisplay
extends BoardListener

This is a visual representation of a board. The interface can be extended by both GUI (Graphic) and CLI (command line) classes.


Method Summary
 Board getBoard()
          returns the Board that this Display is using as a model.
 void setBoard(Board board)
          set the Board that this Display will use as a model.
 void update()
          this refreshes the board display.
 
Methods inherited from interface ictk.boardgame.BoardListener
boardUpdate
 

Method Detail

setBoard

public void setBoard(Board board)
set the Board that this Display will use as a model.


getBoard

public Board getBoard()
returns the Board that this Display is using as a model.


update

public void update()
this refreshes the board display. Depending on what kind of display the implementing class is, this might do any number of different things from printing a board to System.out in the case of a CLI or refreshing the screen in the case of a GUI.


Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .