org.jscience.computing.game.chess
Class SampleChessGraphics

java.lang.Object
  extended by org.jscience.computing.game.chess.SampleChessGraphics
All Implemented Interfaces:
ChessGraphics

public class SampleChessGraphics
extends java.lang.Object
implements ChessGraphics

This class contains two set of sample chess graphics shipped with the antelmann.jar file.


Field Summary
 
Fields inherited from interface org.jscience.computing.game.chess.ChessGraphics
BLACK, WHITE
 
Constructor Summary
SampleChessGraphics()
          currently, this class only supports 1 sets; hence setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException
 
Method Summary
 javax.swing.ImageIcon getBishopIcon(int color)
          DOCUMENT ME!
 javax.swing.ImageIcon getKingIcon(int color)
          currently, this class only supports 2 sets; hence setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException
 javax.swing.ImageIcon getKnightIcon(int color)
          DOCUMENT ME!
 javax.swing.ImageIcon getPawnIcon(int color)
          DOCUMENT ME!
 javax.swing.ImageIcon getQueenIcon(int color)
          DOCUMENT ME!
 javax.swing.ImageIcon getRookIcon(int color)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleChessGraphics

public SampleChessGraphics()
currently, this class only supports 1 sets; hence setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException

Method Detail

getKingIcon

public javax.swing.ImageIcon getKingIcon(int color)
currently, this class only supports 2 sets; hence setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException

Specified by:
getKingIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getQueenIcon

public javax.swing.ImageIcon getQueenIcon(int color)
DOCUMENT ME!

Specified by:
getQueenIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getRookIcon

public javax.swing.ImageIcon getRookIcon(int color)
DOCUMENT ME!

Specified by:
getRookIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getKnightIcon

public javax.swing.ImageIcon getKnightIcon(int color)
DOCUMENT ME!

Specified by:
getKnightIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getBishopIcon

public javax.swing.ImageIcon getBishopIcon(int color)
DOCUMENT ME!

Specified by:
getBishopIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getPawnIcon

public javax.swing.ImageIcon getPawnIcon(int color)
DOCUMENT ME!

Specified by:
getPawnIcon in interface ChessGraphics
Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!