Class FxChessboardFactory
java.lang.Object
org.refcodes.checkerboard.alt.javafx.FxChessboardFactory
- All Implemented Interfaces:
FxBackgroundFactory,org.refcodes.checkerboard.BackgroundFactory<javafx.scene.Node>,org.refcodes.factory.ContextTypeFactory<javafx.scene.Node,org.refcodes.graphical.Raster>
A
FxBackgroundFactory creating checkerboard Node backgrounds.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateInstance(org.refcodes.graphical.Raster aContext) javafx.scene.paint.ColorGets the even field color.javafx.scene.paint.ColorGets the field gap color.javafx.scene.paint.ColorGets the odd field color.voidsetEvenFieldColor(javafx.scene.paint.Color eEvenFieldColor) Sets the even field color.voidsetFieldGapColor(javafx.scene.paint.Color aFieldGapColor) Sets the field gap color.voidsetOddFieldColor(javafx.scene.paint.Color aOddFieldColor) Sets the odd field color.withEvenFieldColor(javafx.scene.paint.Color aEvenFieldColor) Builder method for the even field color.withFieldGapColor(javafx.scene.paint.Color aFieldGapColor) Builder method for the field gap color.withOddFieldColor(javafx.scene.paint.Color aOddFieldColor) Builder method for the 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
-
FxChessboardFactory
public FxChessboardFactory()
-
-
Method Details
-
withEvenFieldColor
Builder method for the even field color.- Parameters:
aEvenFieldColor- the a even field color- Returns:
- the FxChessboardFactory as of the builder pattern.
-
withOddFieldColor
Builder method for the odd field color.- Parameters:
aOddFieldColor- the a odd field color- Returns:
- the FxChessboardFactory as of the builder pattern.
-
withFieldGapColor
Builder method for the field gap color.- Parameters:
aFieldGapColor- the a field gap color- Returns:
- the FxChessboardFactory as of the builder pattern.
-
getEvenFieldColor
public javafx.scene.paint.Color getEvenFieldColor()Gets the even field color.- Returns:
- the even field color
-
setEvenFieldColor
public void setEvenFieldColor(javafx.scene.paint.Color eEvenFieldColor) Sets the even field color.- Parameters:
eEvenFieldColor- the new even field color
-
getOddFieldColor
public javafx.scene.paint.Color getOddFieldColor()Gets the odd field color.- Returns:
- the odd field color
-
setOddFieldColor
public void setOddFieldColor(javafx.scene.paint.Color aOddFieldColor) Sets the odd field color.- Parameters:
aOddFieldColor- the new odd field color
-
setFieldGapColor
public void setFieldGapColor(javafx.scene.paint.Color aFieldGapColor) Sets the field gap color.- Parameters:
aFieldGapColor- the new field gap color
-
getFieldGapColor
public javafx.scene.paint.Color getFieldGapColor()Gets the field gap color.- Returns:
- the field gap color
-
createInstance
public javafx.scene.Node createInstance(org.refcodes.graphical.Raster aContext) - Specified by:
createInstancein interfaceorg.refcodes.factory.ContextTypeFactory<javafx.scene.Node,org.refcodes.graphical.Raster>
-