com.editev.chess.printer
Class Printer

java.lang.Object
  |
  +--com.editev.chess.Chess
        |
        +--com.editev.chess.printer.Printer
Direct Known Subclasses:
BoardPrinter, BodyPrinter, CapturedPrinter, GamePrinter, HeaderPrinter, HistoryPrinter, JavascriptPrinter, PagePrinter, PiecePrinter, PromotionPrinter, RefreshPrinter, SquarePrinter, StatusPrinter, StyleSheetPrinter

public abstract class Printer
extends Chess
implements com.editev.util.Function

A Printer is a Function that prints to a GameHTML -- we put together Printers to display an entire game as HTML.

See Also:
the source here.

Inner classes inherited from class com.editev.chess.Chess
Chess.Black, Chess.White
 
Inner classes inherited from class com.editev.util.Function
com.editev.util.Function.Catch, com.editev.util.Function.Compose, com.editev.util.Function.Evaluate, com.editev.util.Function.Identity, com.editev.util.Function.Loop, com.editev.util.Function.Pair, com.editev.util.Function.Reference, com.editev.util.Function.Try
 
Fields inherited from class com.editev.chess.Chess
BLACK, NO_MOVE, NO_PIECE, WHITE
 
Fields inherited from interface com.editev.util.Function
IDENTITY
 
Constructor Summary
Printer()
           
 
Method Summary
 java.lang.Object eval(java.lang.Object gameHTML)
          Print to a GameHTML and return the same object.
abstract  void print(GameHTML gameHTML)
          Print to an instance of GameHTML.
 
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
 

Constructor Detail

Printer

public Printer()
Method Detail

print

public abstract void print(GameHTML gameHTML)
Print to an instance of GameHTML.
Parameters:
gameHTML - The GameHTML, which can also be

eval

public java.lang.Object eval(java.lang.Object gameHTML)
Print to a GameHTML and return the same object.
Specified by:
eval in interface com.editev.util.Function