1 /** 2 * The chess framework library. 3 * More information is available at http://www.jinchess.com/. 4 * Copyright (C) 2002 Alexander Maryanovsky. 5 * All rights reserved. 6 * 7 * The chess framework library is free software; you can redistribute 8 * it and/or modify it under the terms of the GNU Lesser General Public License 9 * as published by the Free Software Foundation; either version 2 of the 10 * License, or (at your option) any later version. 11 * 12 * The chess framework library is distributed in the hope that it will 13 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with the chess framework library; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 package free.chess; 23 24 import java.awt.Color; 25 26 27 /** 28 * An extension of the PiecePainter interface which adds methods that allow 29 * retrieving and modifying the color of the painted pieces. 30 */ 31 32 public interface ColoredPiecePainter extends PiecePainter{ 33 34 35 36 /** 37 * Returns the color of the white pieces. 38 */ 39 getWhiteColor()40 Color getWhiteColor(); 41 42 43 44 45 /** 46 * Sets the color of the white pieces. 47 */ 48 setWhiteColor(Color color)49 void setWhiteColor(Color color); 50 51 52 53 54 /** 55 * Returns the color of the black pieces. 56 */ 57 getBlackColor()58 Color getBlackColor(); 59 60 61 62 63 /** 64 * Sets the color of the black pieces. 65 */ 66 setBlackColor(Color color)67 void setBlackColor(Color color); 68 69 70 71 72 /** 73 * Returns the color of the outline for white pieces. 74 */ 75 getWhiteOutline()76 Color getWhiteOutline(); 77 78 79 80 81 /** 82 * Sets the color of the outline on white pieces. 83 */ 84 setWhiteOutline(Color color)85 void setWhiteOutline(Color color); 86 87 88 89 90 /** 91 * Returns the color of the outline for black pieces. 92 */ 93 getBlackOutline()94 Color getBlackOutline(); 95 96 97 98 99 /** 100 * Sets the color of the outline on black pieces. 101 */ 102 setBlackOutline(Color color)103 void setBlackOutline(Color color); 104 105 106 } 107