net.curre.prefcount.gui
Class Template

java.lang.Object
  extended by net.curre.prefcount.gui.Template
All Implemented Interfaces:
java.awt.print.Printable

public class Template
extends java.lang.Object
implements java.awt.print.Printable

Object of this class represents a score board template.

Created date: Jun 22, 2008

Author:
Yevgeny Nyden

Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
Template(int numberOfPlayers)
          Creates a new Template object.
 
Method Summary
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template(int numberOfPlayers)
Creates a new Template object.

Parameters:
numberOfPlayers - Number of player for the template.
Method Detail

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException

Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException


Copyright © 2008. All Rights Reserved.