chesspresso.game.view
Class HTMLGameBrowser

java.lang.Object
  |
  +--chesspresso.game.view.HTMLGameBrowser
All Implemented Interfaces:
GameListener

public class HTMLGameBrowser
extends java.lang.Object
implements GameListener

Producer for HTML pages displaying a game.

Version:
$Revision: 1.2 $
Author:
Bernhard Seybold

Constructor Summary
HTMLGameBrowser()
          Create a new HTMLGameBrowser with default settings.
 
Method Summary
static void main(java.lang.String[] args)
           
 void notifyLineEnd(int level)
           
 void notifyLineStart(int level)
           
 void notifyMove(Move move, short[] nags, java.lang.String comment, int plyNumber, int level)
           
 void produceHTML(java.io.OutputStream outStream, Game game)
          Produces HTML to display a game.
 void produceHTML(java.io.OutputStream outStream, Game game, boolean contentOnly)
          Produces HTML to display a game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLGameBrowser

public HTMLGameBrowser()
Create a new HTMLGameBrowser with default settings.

Method Detail

notifyLineStart

public void notifyLineStart(int level)
Specified by:
notifyLineStart in interface GameListener

notifyLineEnd

public void notifyLineEnd(int level)
Specified by:
notifyLineEnd in interface GameListener

notifyMove

public void notifyMove(Move move,
                       short[] nags,
                       java.lang.String comment,
                       int plyNumber,
                       int level)
Specified by:
notifyMove in interface GameListener

produceHTML

public void produceHTML(java.io.OutputStream outStream,
                        Game game)
Produces HTML to display a game.

Parameters:
outStream - where the HTML will be sent to
game - the game to display.

produceHTML

public void produceHTML(java.io.OutputStream outStream,
                        Game game,
                        boolean contentOnly)
Produces HTML to display a game.

Parameters:
outStream - where the HTML will be sent to
game - the game to display.
contentOnly - if true skip header and footer information, use this if you want to produce your own header and footer

main

public static void main(java.lang.String[] args)