Class FxChessboardFactoryImpl<P extends org.refcodes.checkerboard.Player<P,S>,S>
java.lang.Object
org.refcodes.checkerboard.alt.javafx.FxChessboardFactoryImpl<P,S>
- Type Parameters:
P- the generic typeS- the generic type
- All Implemented Interfaces:
FxBackgroundFactory<P,S>,FxChessboardFactory<P,S>,org.refcodes.checkerboard.BackgroundFactory<Node,FxCheckerboardViewer<P,S>>,org.refcodes.factory.ContextTypeFactory<Node,FxCheckerboardViewer<P,S>>
public class FxChessboardFactoryImpl<P extends org.refcodes.checkerboard.Player<P,S>,S> extends Object implements FxChessboardFactory<P,S>
The Class FxChessboardFactoryImpl.
- Author:
- steiner
-
Constructor Summary
Constructors Constructor Description FxChessboardFactoryImpl() -
Method Summary
Modifier and Type Method Description NodecreateInstance(FxCheckerboardViewer<P,S> aContext)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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.factory.ContextTypeFactory
createInstance
-
Constructor Details
-
FxChessboardFactoryImpl
public FxChessboardFactoryImpl()
-
-
Method Details
-
withEvenFieldColor
With even field color.- Specified by:
withEvenFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
aEvenFieldColor- the even field color- Returns:
- the fx chessboard factory
-
withOddFieldColor
With odd field color.- Specified by:
withOddFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
aOddFieldColor- the odd field color- Returns:
- the fx chessboard factory
-
withFieldGapColor
With field gap color.- Specified by:
withFieldGapColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
aFieldGapColor- the field gap color- Returns:
- the fx chessboard factory
-
getEvenFieldColor
Gets the even field color.- Specified by:
getEvenFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Returns:
- the even field color
-
setEvenFieldColor
Sets the even field color.- Specified by:
setEvenFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
eEvenFieldColor- the new even field color
-
getOddFieldColor
Gets the odd field color.- Specified by:
getOddFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Returns:
- the odd field color
-
setOddFieldColor
Sets the odd field color.- Specified by:
setOddFieldColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
aOddFieldColor- the new odd field color
-
setFieldGapColor
Sets the field gap color.- Specified by:
setFieldGapColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Parameters:
aFieldGapColor- the new field gap color
-
getFieldGapColor
Gets the field gap color.- Specified by:
getFieldGapColorin interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>- Returns:
- the field gap color
-
createInstance
-