public class Palette
extends java.lang.Object
This is overkill and provides a singleton instance via Palette.getPalette()
Modifier and Type | Method | Description |
---|---|---|
java.awt.Color |
getBarColour() |
the Color of the bar
|
java.awt.Color |
getBlackPieceColour() |
the Color of black's pieces
|
java.awt.Color |
getBoardBackgroundColour() |
the Color of the parts of the Board that are not Bar or numbered points.
|
java.awt.Color |
getDarkTriangleColour() |
the Color of the dark triangles on the board
|
java.awt.Color |
getLightTriangleColour() |
the Color of the light triangles on the board
|
static Palette |
getPalette() |
the only way to get a Palette object
|
java.awt.Color |
getPieceColor(PlayerColor c) |
the Color of a piece
|
java.awt.Color |
getPieceTextColor(PlayerColor c) |
the Color to use when writing on a piece
|
java.awt.Color |
getWhitePieceColour() |
the Color of white's pieces
|
public static Palette getPalette()
public java.awt.Color getBarColour()
public java.awt.Color getPieceColor(PlayerColor c)
c
- a logical player colourpublic java.awt.Color getPieceTextColor(PlayerColor c)
c
- a logical player colourpublic java.awt.Color getBlackPieceColour()
public java.awt.Color getWhitePieceColour()
public java.awt.Color getDarkTriangleColour()
public java.awt.Color getLightTriangleColour()
public java.awt.Color getBoardBackgroundColour()