Holger's
Java API

com.antelmann.game.chess
Class SampleChessGraphics

java.lang.Object
  extended by 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

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

Constructor Detail

SampleChessGraphics

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

Method Detail

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