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<P,S>
,org.refcodes.factory.ContextTypeFactory<P,S>
public class FxChessboardFactoryImpl<P extends org.refcodes.checkerboard.Player<P,S>,S> extends java.lang.Object implements FxChessboardFactory<P,S>
The Class FxChessboardFactoryImpl.- Author:
- steiner
-
-
Constructor Summary
Constructors Constructor Description FxChessboardFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.Node
createInstance(FxCheckerboardViewer<P,S> aContext)
javafx.scene.paint.Color
getEvenFieldColor()
Gets the even field color.javafx.scene.paint.Color
getFieldGapColor()
Gets the field gap color.javafx.scene.paint.Color
getOddFieldColor()
Gets the odd field color.void
setEvenFieldColor(javafx.scene.paint.Color eEvenFieldColor)
Sets the even field color.void
setFieldGapColor(javafx.scene.paint.Color aFieldGapColor)
Sets the field gap color.void
setOddFieldColor(javafx.scene.paint.Color aOddFieldColor)
Sets the odd field color.FxChessboardFactory<P,S>
withEvenFieldColor(javafx.scene.paint.Color aEvenFieldColor)
With even field color.FxChessboardFactory<P,S>
withFieldGapColor(javafx.scene.paint.Color aFieldGapColor)
With field gap color.FxChessboardFactory<P,S>
withOddFieldColor(javafx.scene.paint.Color aOddFieldColor)
With odd field color.
-
-
-
Method Detail
-
withEvenFieldColor
public FxChessboardFactory<P,S> withEvenFieldColor(javafx.scene.paint.Color aEvenFieldColor)
With even field color.- Specified by:
withEvenFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
aEvenFieldColor
- the even field color- Returns:
- the fx chessboard factory
-
withOddFieldColor
public FxChessboardFactory<P,S> withOddFieldColor(javafx.scene.paint.Color aOddFieldColor)
With odd field color.- Specified by:
withOddFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
aOddFieldColor
- the odd field color- Returns:
- the fx chessboard factory
-
withFieldGapColor
public FxChessboardFactory<P,S> withFieldGapColor(javafx.scene.paint.Color aFieldGapColor)
With field gap color.- Specified by:
withFieldGapColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
aFieldGapColor
- the field gap color- Returns:
- the fx chessboard factory
-
getEvenFieldColor
public javafx.scene.paint.Color getEvenFieldColor()
Gets the even field color.- Specified by:
getEvenFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Returns:
- the even field color
-
setEvenFieldColor
public void setEvenFieldColor(javafx.scene.paint.Color eEvenFieldColor)
Sets the even field color.- Specified by:
setEvenFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
eEvenFieldColor
- the new even field color
-
getOddFieldColor
public javafx.scene.paint.Color getOddFieldColor()
Gets the odd field color.- Specified by:
getOddFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Returns:
- the odd field color
-
setOddFieldColor
public void setOddFieldColor(javafx.scene.paint.Color aOddFieldColor)
Sets the odd field color.- Specified by:
setOddFieldColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
aOddFieldColor
- the new odd field color
-
setFieldGapColor
public void setFieldGapColor(javafx.scene.paint.Color aFieldGapColor)
Sets the field gap color.- Specified by:
setFieldGapColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Parameters:
aFieldGapColor
- the new field gap color
-
getFieldGapColor
public javafx.scene.paint.Color getFieldGapColor()
Gets the field gap color.- Specified by:
getFieldGapColor
in interfaceFxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>
- Returns:
- the field gap color
-
-