Class FxChessboardFactoryImpl<P extends org.refcodes.checkerboard.Player<P,S>,S>

  • Type Parameters:
    P - the generic type
    S - 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 Detail

      • FxChessboardFactoryImpl

        public FxChessboardFactoryImpl​()
    • Method Detail

      • withEvenFieldColor

        public FxChessboardFactory<P,S> withEvenFieldColor​(javafx.scene.paint.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​(javafx.scene.paint.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​(javafx.scene.paint.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 javafx.scene.paint.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​(javafx.scene.paint.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 javafx.scene.paint.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​(javafx.scene.paint.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​(javafx.scene.paint.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 javafx.scene.paint.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 javafx.scene.Node createInstance​(FxCheckerboardViewer<P,S> aContext)
        Specified by:
        createInstance in interface org.refcodes.factory.ContextTypeFactory<P extends org.refcodes.checkerboard.Player<P,S>,S>