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

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P,S>>
org.refcodes.checkerboard.alt.javafx.FxCheckerboardViewer<P,S>
Type Parameters:
P - The type representing a Player
S - The type which's instances represent a Player state.
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, org.refcodes.checkerboard.BackgroundFactoryAccessor<FxBackgroundFactory>, org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder<FxBackgroundFactory,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryMutator<FxBackgroundFactory>, org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty<FxBackgroundFactory>, org.refcodes.checkerboard.CheckerboardObserver<P,S>, org.refcodes.checkerboard.CheckerboardViewer<P,S,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.GraphicalCheckerboardViewer<P,S,javafx.scene.Node,FxSpriteFactory<S>,FxBackgroundFactory,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.SpriteFactoryAccessor<FxSpriteFactory<S>>, org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryBuilder<FxSpriteFactory<S>,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryMutator<FxSpriteFactory<S>>, org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty<FxSpriteFactory<S>>, org.refcodes.component.Component, org.refcodes.component.Destroyable, org.refcodes.component.Initializable, org.refcodes.component.Initializable.InitializeBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.component.InitializableComponent, org.refcodes.graphical.ContainerDimension, org.refcodes.graphical.ContainerHeightAccessor, org.refcodes.graphical.ContainerMetrics, org.refcodes.graphical.ContainerWidthAccessor, org.refcodes.graphical.DragOpacityAccessor, org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty, org.refcodes.graphical.FieldDimension, org.refcodes.graphical.FieldDimension.FieldDimensionAccessor, org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty, org.refcodes.graphical.FieldGapAccessor, org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty, org.refcodes.graphical.FieldHeightAccessor, org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty, org.refcodes.graphical.FieldWidthAccessor, org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty, org.refcodes.graphical.GridDimension, org.refcodes.graphical.GridHeightAccessor, org.refcodes.graphical.GridModeAccessor, org.refcodes.graphical.GridModeAccessor.GridModeBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty, org.refcodes.graphical.GridViewportPane<javafx.scene.Node,FxCheckerboardViewer<P,S>>, org.refcodes.graphical.GridWidthAccessor, org.refcodes.graphical.MinViewportDimension, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty, org.refcodes.graphical.MoveModeAccessor, org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty, org.refcodes.graphical.Raster, org.refcodes.graphical.ScaleModeAccessor, org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty, org.refcodes.graphical.Viewport, org.refcodes.graphical.ViewportDimension, org.refcodes.graphical.ViewportDimension.ViewportDimensionAccessor, org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator, org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty, org.refcodes.graphical.ViewportHeightAccessor, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty, org.refcodes.graphical.ViewportOffset, org.refcodes.graphical.ViewportOffset.ViewportOffsetAccessor, org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty, org.refcodes.graphical.ViewportOffsetXAccessor, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty, org.refcodes.graphical.ViewportOffsetYAccessor, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty, org.refcodes.graphical.ViewportWidthAccessor, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty, org.refcodes.graphical.VisibleAccessor, org.refcodes.graphical.VisibleAccessor.VisibleBuilder<FxCheckerboardViewer<P,S>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty, org.refcodes.observer.ObservableObserver<org.refcodes.checkerboard.Checkerboard<P,S>>

public class FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S> extends org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P,S>> implements org.refcodes.checkerboard.GraphicalCheckerboardViewer<P,S,javafx.scene.Node,FxSpriteFactory<S>,FxBackgroundFactory,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.CheckerboardObserver<P,S>
The class FxCheckerboardViewer uses the AbstractFxGridViewportPane to implement a CheckerboardViewer.
  • Property Summary

    Properties inherited from class javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Properties inherited from class javafx.scene.Parent

    needsLayout

    Properties inherited from class javafx.scene.Node

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.checkerboard.BackgroundFactoryAccessor

    org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends org.refcodes.checkerboard.BackgroundFactory<?>,B extends org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF,B>>, org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends org.refcodes.checkerboard.BackgroundFactory<?>>, org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty<BF extends org.refcodes.checkerboard.BackgroundFactory<?>>

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerDimension

    org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B extends org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B>>, org.refcodes.graphical.ContainerDimension.ContainerDimensionMutator, org.refcodes.graphical.ContainerDimension.ContainerDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerHeightAccessor

    org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B extends org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B>>, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightMutator, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerWidthAccessor

    org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B extends org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B>>, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthMutator, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthProperty

    Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable

    org.refcodes.component.Destroyable.DestroyAutomaton

    Nested classes/interfaces inherited from interface org.refcodes.graphical.DragOpacityAccessor

    org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B extends org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B>>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldDimension

    org.refcodes.graphical.FieldDimension.FieldDimensionAccessor, org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B extends org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldGapAccessor

    org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B extends org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldHeightAccessor

    org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B extends org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldWidthAccessor

    org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B extends org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.GridDimension

    org.refcodes.graphical.GridDimension.GridDimensionAccessor, org.refcodes.graphical.GridDimension.GridDimensionBuilder<B extends org.refcodes.graphical.GridDimension.GridDimensionBuilder<B>>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.GridHeightAccessor

    org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.GridModeAccessor

    org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.GridWidthAccessor

    org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty

    Nested classes/interfaces inherited from interface org.refcodes.component.Initializable

    org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable

    Nested classes/interfaces inherited from interface org.refcodes.graphical.MinViewportDimension

    org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B extends org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B>>, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.MoveModeAccessor

    org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B extends org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.Raster

    org.refcodes.graphical.Raster.RasterAccessor, org.refcodes.graphical.Raster.RasterBuilder<B extends org.refcodes.graphical.Raster.RasterBuilder<B>>, org.refcodes.graphical.Raster.RasterMutator, org.refcodes.graphical.Raster.RasterProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ScaleModeAccessor

    org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B extends org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B>>, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty

    Nested classes/interfaces inherited from interface org.refcodes.checkerboard.SpriteFactoryAccessor

    org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends org.refcodes.checkerboard.SpriteFactory<?,?,?>,B extends org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryBuilder<SF,B>>, org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryMutator<SF extends org.refcodes.checkerboard.SpriteFactory<?,?,?>>, org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty<SF extends org.refcodes.checkerboard.SpriteFactory<?,?,?>>

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportDimension

    org.refcodes.graphical.ViewportDimension.ViewportDimensionAccessor, org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B extends org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B>>, org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator, org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportHeightAccessor

    org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B extends org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffset

    org.refcodes.graphical.ViewportOffset.ViewportOffsetAccessor, org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B extends org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B>>, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor

    org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B extends org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B>>, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor

    org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B extends org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B>>, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportWidthAccessor

    org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.VisibleAccessor

    org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected javafx.scene.Node
     
    protected javafx.scene.Group
     
    protected Map<P,javafx.scene.Node>
     

    Fields inherited from class javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    FxCheckerboardViewer(org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    Instantiates a new FxCheckerboardViewer instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    int
    Gets the adds the player duration in milliseconds.
    int
    Gets the change player state in millis.
    int
    Gets the change player visibility duration in milliseconds.
    int
    int
    int
    org.refcodes.graphical.GridMode
    int
    org.refcodes.graphical.ViewportDimension
    int
    Gets the move player duration in milliseconds.
    int
    Gets the remove the player duration in milliseconds.
    org.refcodes.graphical.ScaleMode
    void
    protected void
    hidePlayers(int aDurationMillis)
    Hide players.
    void
    void
    onChangePositionEvent(org.refcodes.checkerboard.ChangePositionEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    void
    onCheckerboardEvent(org.refcodes.checkerboard.CheckerboardEvent<P,S> aEvent)
    void
    onDraggabilityChangedEvent(org.refcodes.checkerboard.DraggabilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    void
    onGridDimensionChangedEvent(org.refcodes.checkerboard.GridDimensionChangedEvent<P,S> aEvent)
    void
    onGridModeChangedEvent(org.refcodes.checkerboard.GridModeChangedEvent<P,S> aEvent)
    void
    onPlayerAddedEvent(org.refcodes.checkerboard.PlayerAddedEvent<P,S> aEvent)
    void
    onPlayerEvent(org.refcodes.checkerboard.PlayerEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    void
    onPlayerRemovedEvent(org.refcodes.checkerboard.PlayerRemovedEvent<P,S> aEvent)
    void
    onPositionChangedEvent(org.refcodes.checkerboard.PositionChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    void
    onStateChangedEvent(org.refcodes.checkerboard.StateChangedEvent<P,S> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    void
    onSubscribe(org.refcodes.observer.SubscribeEvent<org.refcodes.checkerboard.Checkerboard<P,S>> aSubscribeEvent)
    void
    onUnsubscribe(org.refcodes.observer.UnsubscribeEvent<org.refcodes.checkerboard.Checkerboard<P,S>> aUnsubscribeEvent)
    void
    onViewportDimensionChangedEvent(org.refcodes.checkerboard.ViewportDimensionChangedEvent<P,S> aEvent)
    void
    onViewportOffsetChangedEvent(org.refcodes.checkerboard.ViewportOffsetChangedEvent<P,S> aEvent)
    void
    onVisibilityChangedEvent(org.refcodes.checkerboard.VisibilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
    protected void
    resetPlayers(int aDurationMillis)
    Reset players.
    protected void
    scalePlayers(org.refcodes.graphical.FieldDimension aFieldDimension, org.refcodes.graphical.FieldDimension aPrecedingFieldDimension)
    Scale players.
    void
    setAddPlayerDurationMillis(int aAddPlayerDurationMillis)
    Sets the adds the player duration in milliseconds.
    void
    void
    setChangePlayerStateMillis(int aChangePlayerStateMillis)
    Sets the change player state in millis.
    void
    setChangePlayerVisibilityDurationMillis(int aChangePlayerVisibilityDurationMillis)
    Sets the change player visibility duration in milliseconds.
    void
    setFieldDimension(org.refcodes.graphical.Dimension aDimension)
    void
    setFieldDimension(org.refcodes.graphical.FieldDimension aField)
    void
    setMinViewportDimension(int aWidth, int aHeight)
    void
    setMinViewportDimension(org.refcodes.graphical.Dimension aDimension)
    void
    setMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension)
    void
    setMovePlayerDurationMillis(int aMovePlayerDurationMillis)
    Sets the move player duration in milliseconds.
    void
    setRemovePlayerDurationMillis(int aRemovePlayerDurationMillis)
    Sets the removes the player duration in millis.
    void
    setScaleMode(org.refcodes.graphical.ScaleMode aMode)
    void
    void
    setViewportDimension(org.refcodes.graphical.Dimension aDimension)
    void
    setViewportOffset(int aPosX, int aPosY)
    void
    int
    int
    withAddPlayerDurationMillis(int aAddPlayerDurationMillis)
    With add player duration in millis.
    withChangePlayerStateMillis(int aChangePlayerStateMillis)
    With change player state in millis.
    withChangePlayerVisibilityDurationMillis(int aChangePlayerVisibilityDurationMillis)
    With change player visibility duration in milliseconds.
    withDragOpacity(double aOpacity)
    withDragViewportDurationMillis(int aDragViewportDurationMillis)
    withFieldDimension(int aFieldWidth, int aFieldHeight)
    withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
    withFieldDimension(org.refcodes.graphical.Dimension aDimension)
    withFieldDimension(org.refcodes.graphical.FieldDimension aField)
    withFieldGap(int aFieldGap)
    withFieldHeight(int aHeight)
    withFieldWidth(int aWidth)
    withGridMode(org.refcodes.graphical.GridMode aGridMode)
    withMinViewportDimension(int aWidth, int aHeight)
    withMinViewportDimension(org.refcodes.graphical.Dimension aDimension)
    withMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension)
    withMoveMode(org.refcodes.graphical.MoveMode aMode)
    withMovePlayerDurationMillis(int aMovePlayerDurationMillis)
    With move player duration in milliseconds.
    withMoveViewportDurationMillis(int aMoveViewportDurationMillis)
    withRemovePlayerDurationMillis(int aRemovePlayerDurationMillis)
    With remove player duration in millis.
    withScaleMode(org.refcodes.graphical.ScaleMode aMode)
    withViewportDimension(int aWidth, int aHeight)
    withViewportDimension(org.refcodes.graphical.Dimension aDimension)
    withViewportDimension(org.refcodes.graphical.ViewportDimension aGridDimension)
    withViewportHeight(int aGridHeight)
    withViewportOffset(int aPosX, int aPosY)
    withViewportOffset(org.refcodes.graphical.Offset aOffset)
    withViewportOffset(org.refcodes.graphical.Position aOffset)
    withViewportOffset(org.refcodes.graphical.ViewportOffset aOffset)
    withViewportWidth(int aGridWidth)
    withVisible(boolean isVisible)

    Methods inherited from class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane

    getContent, getDragOpacity, getDragViewportDurationMillis, getFieldGap, getFieldHeight, getFieldWidth, getMoveMode, getMoveViewportDurationMillis, getViewportHeight, getViewportOffsetX, getViewportOffsetY, getViewportWidth, setDragOpacity, setDragViewportDurationMillis, setFieldDimension, setFieldDimension, setFieldGap, setFieldHeight, setFieldWidth, setGridMode, setMoveMode, setMoveViewportDurationMillis, setRoot, setViewportDimension, setViewportDimension, setViewportHeight, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffsetX, setViewportOffsetY, setViewportWidth

    Methods inherited from class javafx.scene.layout.Pane

    getChildren

    Methods inherited from class javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    Methods inherited from class javafx.scene.Parent

    getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    Methods inherited from class javafx.scene.Node

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty

    letBackgroundFactory

    Methods inherited from interface org.refcodes.checkerboard.CheckerboardViewer

    centerViewortOffset, centerViewortOffset

    Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor

    getDragOpacity

    Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator

    setDragOpacity

    Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty

    letDragOpacity

    Methods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator

    setFieldDimension, setFieldDimension

    Methods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionProperty

    letFieldDimension, letFieldDimension, letFieldDimension, letFieldDimension

    Methods inherited from interface org.refcodes.graphical.FieldGapAccessor

    getFieldGap

    Methods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutator

    setFieldGap

    Methods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapProperty

    letFieldGap

    Methods inherited from interface org.refcodes.graphical.FieldHeightAccessor

    getFieldHeight

    Methods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator

    setFieldHeight

    Methods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty

    letFieldHeight

    Methods inherited from interface org.refcodes.graphical.FieldWidthAccessor

    getFieldWidth

    Methods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator

    setFieldWidth

    Methods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty

    letFieldWidth

    Methods inherited from interface org.refcodes.graphical.GridDimension

    isInBounds, isInBounds, isInHeight, isInWidth

    Methods inherited from interface org.refcodes.graphical.GridModeAccessor.GridModeProperty

    letGridMode

    Methods inherited from interface org.refcodes.component.Initializable

    initializeUnchecked

    Methods inherited from interface org.refcodes.component.Initializable.InitializeBuilder

    withInitializeUnchecked

    Methods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty

    letMinViewportDimension, letMinViewportDimension, letMinViewportDimension

    Methods inherited from interface org.refcodes.graphical.MoveModeAccessor

    getMoveMode

    Methods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutator

    setMoveMode

    Methods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeProperty

    letMoveMode

    Methods inherited from interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty

    letScaleMode

    Methods inherited from interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty

    letSpriteFactory

    Methods inherited from interface javafx.css.Styleable

    getStyleableNode

    Methods inherited from interface org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator

    setViewportDimension, setViewportDimension

    Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor

    getViewportHeight

    Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator

    setViewportHeight

    Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty

    letViewportHeight

    Methods inherited from interface org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator

    setViewportOffset, setViewportOffset, setViewportOffset

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor

    getViewportOffsetX

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator

    setViewportOffsetX

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty

    letViewportOffsetX

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor

    getViewportOffsetY

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator

    setViewportOffsetY

    Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty

    letViewportOffsetY

    Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor

    getViewportWidth

    Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator

    setViewportWidth

    Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty

    letViewportWidth

    Methods inherited from interface org.refcodes.graphical.VisibleAccessor

    isVisible

    Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleMutator

    setVisible

    Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleProperty

    letVisible
  • Field Details

    • _playerToSprite

      protected Map<P extends org.refcodes.checkerboard.Player<P,S>,javafx.scene.Node> _playerToSprite
    • _backgroundNode

      protected javafx.scene.Node _backgroundNode
    • _checkers

      protected javafx.scene.Group _checkers
    • _backgroundFactory

      protected FxBackgroundFactory _backgroundFactory
  • Constructor Details

    • FxCheckerboardViewer

      public FxCheckerboardViewer(org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Instantiates a new FxCheckerboardViewer instance. ATTENTION: As no FxSpriteFactory is provided to this constructor, no sprites can be fabricated when players are added until the SpriteFactoryAccessor.SpriteFactoryMutator.setSpriteFactory(org.refcodes.checkerboard.SpriteFactory) has been set!
      Parameters:
      aCheckerboard - the Checkerboard to be viewed.
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.refcodes.component.Destroyable
    • getAddPlayerDurationMillis

      public int getAddPlayerDurationMillis()
      Gets the adds the player duration in milliseconds.
      Returns:
      the adds the player duration in milliseconds
    • setAddPlayerDurationMillis

      public void setAddPlayerDurationMillis(int aAddPlayerDurationMillis)
      Sets the adds the player duration in milliseconds.
      Parameters:
      aAddPlayerDurationMillis - the new adds the player duration in milliseconds
    • withAddPlayerDurationMillis

      public FxCheckerboardViewer<P,S> withAddPlayerDurationMillis(int aAddPlayerDurationMillis)
      With add player duration in millis.
      Parameters:
      aAddPlayerDurationMillis - the add player duration in millis
      Returns:
      the FxCheckerboardViewer as of the builder pattern.
    • getBackgroundFactory

      public FxBackgroundFactory getBackgroundFactory()
      Specified by:
      getBackgroundFactory in interface org.refcodes.checkerboard.BackgroundFactoryAccessor<P extends org.refcodes.checkerboard.Player<P,S>>
    • getChangePlayerStateMillis

      public int getChangePlayerStateMillis()
      Gets the change player state in millis.
      Returns:
      the change player state in millis
    • setChangePlayerStateMillis

      public void setChangePlayerStateMillis(int aChangePlayerStateMillis)
      Sets the change player state in millis.
      Parameters:
      aChangePlayerStateMillis - the new change player state in millis
    • withChangePlayerStateMillis

      public FxCheckerboardViewer<P,S> withChangePlayerStateMillis(int aChangePlayerStateMillis)
      With change player state in millis.
      Parameters:
      aChangePlayerStateMillis - the change player state in millis
      Returns:
      the FxCheckerboardViewer as of the builder pattern.
    • getContainerHeight

      public int getContainerHeight()
      Specified by:
      getContainerHeight in interface org.refcodes.graphical.ContainerHeightAccessor
    • getContainerWidth

      public int getContainerWidth()
      Specified by:
      getContainerWidth in interface org.refcodes.graphical.ContainerWidthAccessor
    • getGridHeight

      public int getGridHeight()
      Specified by:
      getGridHeight in interface org.refcodes.graphical.GridHeightAccessor
    • getGridMode

      public org.refcodes.graphical.GridMode getGridMode()
      Specified by:
      getGridMode in interface org.refcodes.graphical.GridModeAccessor
      Overrides:
      getGridMode in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • getGridWidth

      public int getGridWidth()
      Specified by:
      getGridWidth in interface org.refcodes.graphical.GridWidthAccessor
    • getMinViewportDimension

      public org.refcodes.graphical.ViewportDimension getMinViewportDimension()
      Specified by:
      getMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension
    • getMovePlayerDurationMillis

      public int getMovePlayerDurationMillis()
      Gets the move player duration in milliseconds.
      Returns:
      the move player duration in milliseconds
    • setMovePlayerDurationMillis

      public void setMovePlayerDurationMillis(int aMovePlayerDurationMillis)
      Sets the move player duration in milliseconds.
      Parameters:
      aMovePlayerDurationMillis - the new move player duration in milliseconds
    • withMovePlayerDurationMillis

      public FxCheckerboardViewer<P,S> withMovePlayerDurationMillis(int aMovePlayerDurationMillis)
      With move player duration in milliseconds.
      Parameters:
      aMovePlayerDurationMillis - the move player duration in milliseconds
      Returns:
      the FxCheckerboardViewer as of the builder pattern.
    • getChangePlayerVisibilityDurationMillis

      public int getChangePlayerVisibilityDurationMillis()
      Gets the change player visibility duration in milliseconds.
      Returns:
      the change player visibility duration in milliseconds
    • setChangePlayerVisibilityDurationMillis

      public void setChangePlayerVisibilityDurationMillis(int aChangePlayerVisibilityDurationMillis)
      Sets the change player visibility duration in milliseconds.
      Parameters:
      aChangePlayerVisibilityDurationMillis - the new change player visibility duration in milliseconds
    • withChangePlayerVisibilityDurationMillis

      public FxCheckerboardViewer<P,S> withChangePlayerVisibilityDurationMillis(int aChangePlayerVisibilityDurationMillis)
      With change player visibility duration in milliseconds.
      Parameters:
      aChangePlayerVisibilityDurationMillis - the change player visibility duration in milliseconds
      Returns:
      the FxCheckerboardViewer as of the builder pattern.
    • getRemovePlayerDurationMillis

      public int getRemovePlayerDurationMillis()
      Gets the remove the player duration in milliseconds.
      Returns:
      the player remove duration in milliseconds
    • setRemovePlayerDurationMillis

      public void setRemovePlayerDurationMillis(int aRemovePlayerDurationMillis)
      Sets the removes the player duration in millis.
      Parameters:
      aRemovePlayerDurationMillis - the new removes the player duration in millis
    • withRemovePlayerDurationMillis

      public FxCheckerboardViewer<P,S> withRemovePlayerDurationMillis(int aRemovePlayerDurationMillis)
      With remove player duration in millis.
      Parameters:
      aRemovePlayerDurationMillis - the remove player duration in millis
      Returns:
      the FxCheckerboardViewer as of the builder pattern.
    • getScaleMode

      public org.refcodes.graphical.ScaleMode getScaleMode()
      Specified by:
      getScaleMode in interface org.refcodes.graphical.ScaleModeAccessor
    • getSpriteFactory

      public FxSpriteFactory<S> getSpriteFactory()
      Specified by:
      getSpriteFactory in interface org.refcodes.checkerboard.SpriteFactoryAccessor<P extends org.refcodes.checkerboard.Player<P,S>>
    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.refcodes.component.Initializable
    • onChangePositionEvent

      public void onChangePositionEvent(org.refcodes.checkerboard.ChangePositionEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard) throws org.refcodes.exception.VetoException
      Specified by:
      onChangePositionEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
      Throws:
      org.refcodes.exception.VetoException
    • onCheckerboardEvent

      public void onCheckerboardEvent(org.refcodes.checkerboard.CheckerboardEvent<P,S> aEvent)
      Specified by:
      onCheckerboardEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onDraggabilityChangedEvent

      public void onDraggabilityChangedEvent(org.refcodes.checkerboard.DraggabilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Specified by:
      onDraggabilityChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onGridDimensionChangedEvent

      public void onGridDimensionChangedEvent(org.refcodes.checkerboard.GridDimensionChangedEvent<P,S> aEvent)
      Specified by:
      onGridDimensionChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onGridModeChangedEvent

      public void onGridModeChangedEvent(org.refcodes.checkerboard.GridModeChangedEvent<P,S> aEvent)
      Specified by:
      onGridModeChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onPlayerAddedEvent

      public void onPlayerAddedEvent(org.refcodes.checkerboard.PlayerAddedEvent<P,S> aEvent)
      Specified by:
      onPlayerAddedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onPlayerEvent

      public void onPlayerEvent(org.refcodes.checkerboard.PlayerEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Specified by:
      onPlayerEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onPlayerRemovedEvent

      public void onPlayerRemovedEvent(org.refcodes.checkerboard.PlayerRemovedEvent<P,S> aEvent)
      Specified by:
      onPlayerRemovedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onPositionChangedEvent

      public void onPositionChangedEvent(org.refcodes.checkerboard.PositionChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Specified by:
      onPositionChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onStateChangedEvent

      public void onStateChangedEvent(org.refcodes.checkerboard.StateChangedEvent<P,S> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Specified by:
      onStateChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onSubscribe

      public void onSubscribe(org.refcodes.observer.SubscribeEvent<org.refcodes.checkerboard.Checkerboard<P,S>> aSubscribeEvent)
      Specified by:
      onSubscribe in interface org.refcodes.observer.ObservableObserver<P extends org.refcodes.checkerboard.Player<P,S>>
    • onUnsubscribe

      public void onUnsubscribe(org.refcodes.observer.UnsubscribeEvent<org.refcodes.checkerboard.Checkerboard<P,S>> aUnsubscribeEvent)
      Specified by:
      onUnsubscribe in interface org.refcodes.observer.ObservableObserver<P extends org.refcodes.checkerboard.Player<P,S>>
    • onViewportDimensionChangedEvent

      public void onViewportDimensionChangedEvent(org.refcodes.checkerboard.ViewportDimensionChangedEvent<P,S> aEvent)
      Specified by:
      onViewportDimensionChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onViewportOffsetChangedEvent

      public void onViewportOffsetChangedEvent(org.refcodes.checkerboard.ViewportOffsetChangedEvent<P,S> aEvent)
      Specified by:
      onViewportOffsetChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • onVisibilityChangedEvent

      public void onVisibilityChangedEvent(org.refcodes.checkerboard.VisibilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P,S> aCheckerboard)
      Specified by:
      onVisibilityChangedEvent in interface org.refcodes.checkerboard.CheckerboardObserver<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • setBackgroundFactory

      public void setBackgroundFactory(FxBackgroundFactory aBackgroundFactory)
      Specified by:
      setBackgroundFactory in interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryMutator<P extends org.refcodes.checkerboard.Player<P,S>>
    • setFieldDimension

      public void setFieldDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
      Overrides:
      setFieldDimension in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • setFieldDimension

      public void setFieldDimension(org.refcodes.graphical.FieldDimension aField)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
      Overrides:
      setFieldDimension in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • setMinViewportDimension

      public void setMinViewportDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      setMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
    • setMinViewportDimension

      public void setMinViewportDimension(int aWidth, int aHeight)
      Specified by:
      setMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
    • setMinViewportDimension

      public void setMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension)
      Specified by:
      setMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
    • setScaleMode

      public void setScaleMode(org.refcodes.graphical.ScaleMode aMode)
      Specified by:
      setScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
    • setSpriteFactory

      public void setSpriteFactory(FxSpriteFactory<S> aSpriteFactory)
      Specified by:
      setSpriteFactory in interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryMutator<P extends org.refcodes.checkerboard.Player<P,S>>
    • setViewportDimension

      public void setViewportDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      setViewportDimension in interface org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
      Overrides:
      setViewportDimension in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • setViewportOffset

      public void setViewportOffset(int aPosX, int aPosY)
      Specified by:
      setViewportOffset in interface org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
      Overrides:
      setViewportOffset in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • show

      public void show()
      Specified by:
      show in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
    • hide

      public void hide()
      Specified by:
      hide in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
    • toTotalHeight

      public int toTotalHeight()
      Specified by:
      toTotalHeight in interface org.refcodes.graphical.ContainerMetrics
    • toTotalWidth

      public int toTotalWidth()
      Specified by:
      toTotalWidth in interface org.refcodes.graphical.ContainerMetrics
    • withBackgroundFactory

      public FxCheckerboardViewer<P,S> withBackgroundFactory(FxBackgroundFactory aBackgroundFactory)
      Specified by:
      withBackgroundFactory in interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • withDragOpacity

      public FxCheckerboardViewer<P,S> withDragOpacity(double aOpacity)
      Specified by:
      withDragOpacity in interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldDimension

      public FxCheckerboardViewer<P,S> withFieldDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldDimension

      public FxCheckerboardViewer<P,S> withFieldDimension(org.refcodes.graphical.FieldDimension aField)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldDimension

      public FxCheckerboardViewer<P,S> withFieldDimension(int aFieldWidth, int aFieldHeight)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldDimension

      public FxCheckerboardViewer<P,S> withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldGap

      public FxCheckerboardViewer<P,S> withFieldGap(int aFieldGap)
      Specified by:
      withFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldHeight

      public FxCheckerboardViewer<P,S> withFieldHeight(int aHeight)
      Specified by:
      withFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withFieldWidth

      public FxCheckerboardViewer<P,S> withFieldWidth(int aWidth)
      Specified by:
      withFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withGridMode

      public FxCheckerboardViewer<P,S> withGridMode(org.refcodes.graphical.GridMode aGridMode)
      Specified by:
      withGridMode in interface org.refcodes.graphical.GridModeAccessor.GridModeBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withHide

      public FxCheckerboardViewer<P,S> withHide()
      Specified by:
      withHide in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withInitialize

      public FxCheckerboardViewer<P,S> withInitialize()
      Specified by:
      withInitialize in interface org.refcodes.component.Initializable.InitializeBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withMinViewportDimension

      public FxCheckerboardViewer<P,S> withMinViewportDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      withMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withMinViewportDimension

      public FxCheckerboardViewer<P,S> withMinViewportDimension(int aWidth, int aHeight)
      Specified by:
      withMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withMinViewportDimension

      public FxCheckerboardViewer<P,S> withMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension)
      Specified by:
      withMinViewportDimension in interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withMoveMode

      public FxCheckerboardViewer<P,S> withMoveMode(org.refcodes.graphical.MoveMode aMode)
      Specified by:
      withMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withScaleMode

      public FxCheckerboardViewer<P,S> withScaleMode(org.refcodes.graphical.ScaleMode aMode)
      Specified by:
      withScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withShow

      public FxCheckerboardViewer<P,S> withShow()
      Specified by:
      withShow in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withSpriteFactory

      public FxCheckerboardViewer<P,S> withSpriteFactory(FxSpriteFactory<S> aSpriteFactory)
      Specified by:
      withSpriteFactory in interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryBuilder<P extends org.refcodes.checkerboard.Player<P,S>,S>
    • withViewportDimension

      public FxCheckerboardViewer<P,S> withViewportDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      withViewportDimension in interface org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportDimension

      public FxCheckerboardViewer<P,S> withViewportDimension(int aWidth, int aHeight)
      Specified by:
      withViewportDimension in interface org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportDimension

      public FxCheckerboardViewer<P,S> withViewportDimension(org.refcodes.graphical.ViewportDimension aGridDimension)
      Specified by:
      withViewportDimension in interface org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportHeight

      public FxCheckerboardViewer<P,S> withViewportHeight(int aGridHeight)
      Specified by:
      withViewportHeight in interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffset

      public FxCheckerboardViewer<P,S> withViewportOffset(int aPosX, int aPosY)
      Specified by:
      withViewportOffset in interface org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffset

      public FxCheckerboardViewer<P,S> withViewportOffset(org.refcodes.graphical.Offset aOffset)
      Specified by:
      withViewportOffset in interface org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffset

      public FxCheckerboardViewer<P,S> withViewportOffset(org.refcodes.graphical.Position aOffset)
      Specified by:
      withViewportOffset in interface org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffset

      public FxCheckerboardViewer<P,S> withViewportOffset(org.refcodes.graphical.ViewportOffset aOffset)
      Specified by:
      withViewportOffset in interface org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffsetX

      public FxCheckerboardViewer<P,S> withViewportOffsetX(int aPosX)
      Specified by:
      withViewportOffsetX in interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportOffsetY

      public FxCheckerboardViewer<P,S> withViewportOffsetY(int aPosY)
      Specified by:
      withViewportOffsetY in interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withViewportWidth

      public FxCheckerboardViewer<P,S> withViewportWidth(int aGridWidth)
      Specified by:
      withViewportWidth in interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withVisible

      public FxCheckerboardViewer<P,S> withVisible(boolean isVisible)
      Specified by:
      withVisible in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends org.refcodes.checkerboard.Player<P,S>>
    • withMoveViewportDurationMillis

      public FxCheckerboardViewer<P,S> withMoveViewportDurationMillis(int aMoveViewportDurationMillis)
      Overrides:
      withMoveViewportDurationMillis in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • withDragViewportDurationMillis

      public FxCheckerboardViewer<P,S> withDragViewportDurationMillis(int aDragViewportDurationMillis)
      Overrides:
      withDragViewportDurationMillis in class org.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>,S>>
    • toString

      public String toString()
      Overrides:
      toString in class javafx.scene.Node
    • hidePlayers

      protected void hidePlayers(int aDurationMillis)
      Hide players.
      Parameters:
      aDurationMillis - the duration in milliseconds
    • resetPlayers

      protected void resetPlayers(int aDurationMillis)
      Reset players.
      Parameters:
      aDurationMillis - the duration in milliseconds
    • scalePlayers

      protected void scalePlayers(org.refcodes.graphical.FieldDimension aFieldDimension, org.refcodes.graphical.FieldDimension aPrecedingFieldDimension)
      Scale players.
      Parameters:
      aFieldDimension - the field dimension
      aPrecedingFieldDimension - the preceding field dimension