com.antelmann.game.chess
Class SampleChessGraphics
java.lang.Object
com.antelmann.game.chess.SampleChessGraphics
- All Implemented Interfaces:
- ChessGraphics
public class SampleChessGraphics
- extends Object
- implements ChessGraphics
This class contains two set of sample chess graphics shipped with
the antelmann.jar file.
- Author:
- Holger Antelmann
|
Constructor Summary |
SampleChessGraphics(int setNumber)
currently, this class only supports 2 sets; hence
setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleChessGraphics
public SampleChessGraphics(int setNumber)
- currently, this class only supports 2 sets; hence
setNumber can be either 1 or 2 - everthing else throws IllegalArgumentException
getKingIcon
public ImageIcon getKingIcon(int color)
- Specified by:
getKingIcon in interface ChessGraphics
getQueenIcon
public ImageIcon getQueenIcon(int color)
- Specified by:
getQueenIcon in interface ChessGraphics
getRookIcon
public ImageIcon getRookIcon(int color)
- Specified by:
getRookIcon in interface ChessGraphics
getKnightIcon
public ImageIcon getKnightIcon(int color)
- Specified by:
getKnightIcon in interface ChessGraphics
getBishopIcon
public ImageIcon getBishopIcon(int color)
- Specified by:
getBishopIcon in interface ChessGraphics
getPawnIcon
public ImageIcon getPawnIcon(int color)
- Specified by:
getPawnIcon in interface ChessGraphics
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads