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 type
S - 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 Details

    • FxChessboardFactoryImpl

      public FxChessboardFactoryImpl()
  • Method Details

    • withEvenFieldColor

      public FxChessboardFactory<P,​S> withEvenFieldColor​(Color aEvenFieldColor)
      With even field color.
      Specified by:
      withEvenFieldColor in interface FxChessboardFactory<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​(Color aOddFieldColor)
      With odd field color.
      Specified by:
      withOddFieldColor in interface FxChessboardFactory<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​(Color aFieldGapColor)
      With field gap color.
      Specified by:
      withFieldGapColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Parameters:
      aFieldGapColor - the field gap color
      Returns:
      the fx chessboard factory
    • getEvenFieldColor

      public Color getEvenFieldColor()
      Gets the even field color.
      Specified by:
      getEvenFieldColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Returns:
      the even field color
    • setEvenFieldColor

      public void setEvenFieldColor​(Color eEvenFieldColor)
      Sets the even field color.
      Specified by:
      setEvenFieldColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Parameters:
      eEvenFieldColor - the new even field color
    • getOddFieldColor

      public Color getOddFieldColor()
      Gets the odd field color.
      Specified by:
      getOddFieldColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Returns:
      the odd field color
    • setOddFieldColor

      public void setOddFieldColor​(Color aOddFieldColor)
      Sets the odd field color.
      Specified by:
      setOddFieldColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Parameters:
      aOddFieldColor - the new odd field color
    • setFieldGapColor

      public void setFieldGapColor​(Color aFieldGapColor)
      Sets the field gap color.
      Specified by:
      setFieldGapColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Parameters:
      aFieldGapColor - the new field gap color
    • getFieldGapColor

      public Color getFieldGapColor()
      Gets the field gap color.
      Specified by:
      getFieldGapColor in interface FxChessboardFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>
      Returns:
      the field gap color
    • createInstance

      public Node createInstance​(FxCheckerboardViewer<P,​S> aContext)
      Specified by:
      createInstance in interface org.refcodes.factory.ContextTypeFactory<P extends org.refcodes.checkerboard.Player<P,​S>,​S>