com.eriksilkensen.sudoku
Class SudokuBoardPrinter

java.lang.Object
  extended by com.eriksilkensen.sudoku.SudokuBoardPrinter

public class SudokuBoardPrinter
extends java.lang.Object

SudokuBoardPrinter prints Sudoku Boards by taking advantage of the HTMLPrinter's provided functionality. It uses the template HTML file to generate a printable WebBrowser and then

Since:
1.0.3
Version:
03/06/07
Author:
Erik Silkensen

Constructor Summary
SudokuBoardPrinter()
          Default constructor for SudokuBoardPrinter.
 
Method Summary
 void print(Board board)
          Prepares the JEditorPane by inserting the Board's information into the correct positions marked inside the template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SudokuBoardPrinter

public SudokuBoardPrinter()
                   throws java.lang.Exception
Default constructor for SudokuBoardPrinter. Initializes the template HTML file. If initialization fails, an exception is thrown.

Throws:
java.lang.Exception
Method Detail

print

public void print(Board board)
           throws java.awt.print.PrinterException,
                  java.io.IOException
Prepares the JEditorPane by inserting the Board's information into the correct positions marked inside the template. Once finished, the JEditorPane can be printed

Throws:
java.awt.print.PrinterException
java.io.IOException