Interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Type Parameters:
P- the generic typeS- the generic type
- All Superinterfaces:
org.refcodes.checkerboard.BackgroundFactory<Node,FxCheckerboardViewer<P,S>>,org.refcodes.factory.ContextTypeFactory<Node,FxCheckerboardViewer<P,S>>,FxBackgroundFactory<P,S>
- All Known Implementing Classes:
FxChessboardFactoryImpl
public interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S> extends FxBackgroundFactory<P,S>
A factory for creating FxChessboard objects.
- Author:
- steiner
-
Method Summary
Modifier and Type Method Description ColorgetEvenFieldColor()Gets the even field color.ColorgetFieldGapColor()Gets the field gap color.ColorgetOddFieldColor()Gets the odd field color.voidsetEvenFieldColor(Color eEvenFieldColor)Sets the even field color.voidsetFieldGapColor(Color aFieldGapColor)Sets the field gap color.voidsetOddFieldColor(Color aOddFieldColor)Sets the odd field color.FxChessboardFactory<P,S>withEvenFieldColor(Color aEvenFieldColor)With even field color.FxChessboardFactory<P,S>withFieldGapColor(Color aFieldGapColor)With field gap color.FxChessboardFactory<P,S>withOddFieldColor(Color aOddFieldColor)With odd field color.Methods inherited from interface org.refcodes.factory.ContextTypeFactory
createInstance, createInstance
-
Method Details
-
withEvenFieldColor
With even field color.- Parameters:
aEvenFieldColor- the even field color- Returns:
- the fx chessboard factory
-
withOddFieldColor
With odd field color.- Parameters:
aOddFieldColor- the odd field color- Returns:
- the fx chessboard factory
-
withFieldGapColor
With field gap color.- Parameters:
aFieldGapColor- the field gap color- Returns:
- the fx chessboard factory
-
getEvenFieldColor
Color getEvenFieldColor()Gets the even field color.- Returns:
- the even field color
-
setEvenFieldColor
Sets the even field color.- Parameters:
eEvenFieldColor- the new even field color
-
getOddFieldColor
Color getOddFieldColor()Gets the odd field color.- Returns:
- the odd field color
-
setOddFieldColor
Sets the odd field color.- Parameters:
aOddFieldColor- the new odd field color
-
setFieldGapColor
Sets the field gap color.- Parameters:
aFieldGapColor- the new field gap color
-
getFieldGapColor
Color getFieldGapColor()Gets the field gap color.- Returns:
- the field gap color
-