|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.editev.chess.Chess
|
+--com.editev.chess.printer.Printer
|
+--com.editev.chess.printer.StyleSheetPrinter
Prints a style sheet, if necessary.
the source here.| Inner classes inherited from class com.editev.chess.Chess |
Chess.Black,
Chess.White |
| Field Summary | |
static java.lang.String |
BLACK_PIECE
Color of a black piece. |
static java.lang.String |
BLACK_SQUARE
Color of a black square. |
private static java.lang.String |
CAPTURE_STYLE_TEMPLATE
A template for CSS styles for captured pieces.. |
static java.lang.String |
HEADER
Information that needs to appear in the header of the HTML document, including CSS style sheets and Javascript. |
static java.lang.String |
HISTORY_STYLE
|
static java.lang.String |
HISTORY_STYLE_NAME
|
private static java.lang.String |
STYLE_TEMPLATE
A template for CSS styles for squares and pieces. |
static java.lang.String |
WHITE_PIECE
Color of a white piece. |
static java.lang.String |
WHITE_SQUARE
Color of a white square. |
| Fields inherited from class com.editev.chess.Chess |
BLACK,
NO_MOVE,
NO_PIECE,
WHITE |
| Constructor Summary | |
StyleSheetPrinter()
|
|
| Method Summary | |
static java.lang.String |
captureStyleName(boolean isWhitePiece)
The name of a style for a captured piece. |
static java.lang.String |
getCaptureCSSDefinition(boolean isWhitePiece)
Get the CSS style definition for captured pieces. |
static java.lang.String |
getCSSDefinition(boolean isWhitePiece,
boolean isWhiteSquare)
Get the CSS style definition for this piece and square color. |
private static java.lang.String |
pieceColor(boolean isWhite)
The color of a piece. |
void |
print(GameHTML game)
Print to an instance of GameHTML. |
private static java.lang.String |
squareColor(boolean isWhite)
The color of a square. |
static java.lang.String |
styleName(boolean isWhitePiece,
boolean isWhiteSquare)
The name of a style for a given square and piece color. |
| Methods inherited from class com.editev.chess.printer.Printer |
eval |
| Methods inherited from class com.editev.chess.Chess |
notColor,
toColor,
toColor,
toColorName |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String BLACK_PIECE
public static final java.lang.String BLACK_SQUARE
public static final java.lang.String WHITE_PIECE
public static final java.lang.String WHITE_SQUARE
private static java.lang.String STYLE_TEMPLATE
private static java.lang.String CAPTURE_STYLE_TEMPLATE
public static final java.lang.String HISTORY_STYLE_NAME
public static final java.lang.String HISTORY_STYLE
public static final java.lang.String HEADER
| Constructor Detail |
public StyleSheetPrinter()
| Method Detail |
private static java.lang.String pieceColor(boolean isWhite)
isWhite - is the piece white or black?private static java.lang.String squareColor(boolean isWhite)
isWhite - is the square white or black?
public static java.lang.String styleName(boolean isWhitePiece,
boolean isWhiteSquare)
public static java.lang.String captureStyleName(boolean isWhitePiece)
public static java.lang.String getCSSDefinition(boolean isWhitePiece,
boolean isWhiteSquare)
public static java.lang.String getCaptureCSSDefinition(boolean isWhitePiece)
public void print(GameHTML game)
gameHTML - The GameHTML, which can also be
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||