com.editev.chess.printer
Class HistoryPrinter

java.lang.Object
  |
  +--com.editev.chess.Chess
        |
        +--com.editev.chess.printer.Printer
              |
              +--com.editev.chess.printer.HistoryPrinter

public class HistoryPrinter
extends Printer

Prints the move history for a Game.

See Also:
the source here.

Inner classes inherited from class com.editev.chess.Chess
Chess.Black, Chess.White
 
Field Summary
static int MOVES_PER_TABLE
           
 
Fields inherited from class com.editev.chess.Chess
BLACK, NO_MOVE, NO_PIECE, WHITE
 
Constructor Summary
HistoryPrinter()
           
 
Method Summary
 void print(GameHTML game)
          Prints the move history for a Game.
 void printOneMove(GameHTML game, int moveIndex, java.lang.StringBuffer moveString)
           
 
Methods inherited from class com.editev.chess.printer.Printer
eval
 
Methods inherited from class com.editev.chess.Chess
notColor, toColor, toColor, toColorName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

MOVES_PER_TABLE

public static final int MOVES_PER_TABLE
Constructor Detail

HistoryPrinter

public HistoryPrinter()
Method Detail

printOneMove

public void printOneMove(GameHTML game,
                         int moveIndex,
                         java.lang.StringBuffer moveString)

print

public void print(GameHTML game)
Prints the move history for a Game.
Overrides:
print in class Printer
Parameters:
game - the GameHTML with the board status and PrintStream for this board.