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 aPlayer
S
- The type which's instances represent aPlayer
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
Modifier and TypeFieldDescriptionprotected FxBackgroundFactory
protected javafx.scene.Node
protected javafx.scene.Group
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
ConstructorDescriptionFxCheckerboardViewer
(org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) Instantiates a newFxCheckerboardViewer
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
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
hide()
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
setBackgroundFactory
(FxBackgroundFactory aBackgroundFactory) 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
setSpriteFactory
(FxSpriteFactory<S> aSpriteFactory) void
setViewportDimension
(org.refcodes.graphical.Dimension aDimension) void
setViewportOffset
(int aPosX, int aPosY) void
show()
toString()
int
int
withAddPlayerDurationMillis
(int aAddPlayerDurationMillis) With add player duration in millis.withBackgroundFactory
(FxBackgroundFactory aBackgroundFactory) 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) withHide()
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) withShow()
withSpriteFactory
(FxSpriteFactory<S> aSpriteFactory) 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) withViewportOffsetX
(int aPosX) withViewportOffsetY
(int aPosY) 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
-
_backgroundNode
protected javafx.scene.Node _backgroundNode -
_checkers
protected javafx.scene.Group _checkers -
_backgroundFactory
-
-
Constructor Details
-
FxCheckerboardViewer
Instantiates a newFxCheckerboardViewer
instance. ATTENTION: As noFxSpriteFactory
is provided to this constructor, no sprites can be fabricated when players are added until theSpriteFactoryAccessor.SpriteFactoryMutator.setSpriteFactory(org.refcodes.checkerboard.SpriteFactory)
has been set!- Parameters:
aCheckerboard
- theCheckerboard
to be viewed.
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.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
With add player duration in millis.- Parameters:
aAddPlayerDurationMillis
- the add player duration in millis- Returns:
- the
FxCheckerboardViewer
as of the builder pattern.
-
getBackgroundFactory
-
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
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 interfaceorg.refcodes.graphical.ContainerHeightAccessor
-
getContainerWidth
public int getContainerWidth()- Specified by:
getContainerWidth
in interfaceorg.refcodes.graphical.ContainerWidthAccessor
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in interfaceorg.refcodes.graphical.GridHeightAccessor
-
getGridMode
public org.refcodes.graphical.GridMode getGridMode()- Specified by:
getGridMode
in interfaceorg.refcodes.graphical.GridModeAccessor
- Overrides:
getGridMode
in classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,
S>, S>>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in interfaceorg.refcodes.graphical.GridWidthAccessor
-
getMinViewportDimension
public org.refcodes.graphical.ViewportDimension getMinViewportDimension()- Specified by:
getMinViewportDimension
in interfaceorg.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
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
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 interfaceorg.refcodes.graphical.ScaleModeAccessor
-
getSpriteFactory
-
initialize
public void initialize()- Specified by:
initialize
in interfaceorg.refcodes.component.Initializable
-
onChangePositionEvent
-
onCheckerboardEvent
-
onDraggabilityChangedEvent
-
onGridDimensionChangedEvent
-
onGridModeChangedEvent
-
onPlayerAddedEvent
-
onPlayerEvent
-
onPlayerRemovedEvent
-
onPositionChangedEvent
-
onStateChangedEvent
-
onSubscribe
-
onUnsubscribe
-
onViewportDimensionChangedEvent
-
onViewportOffsetChangedEvent
-
onVisibilityChangedEvent
-
setBackgroundFactory
-
setFieldDimension
public void setFieldDimension(org.refcodes.graphical.Dimension aDimension) - Specified by:
setFieldDimension
in interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
- Overrides:
setFieldDimension
in classorg.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 interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
- Overrides:
setFieldDimension
in classorg.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 interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setMinViewportDimension
public void setMinViewportDimension(int aWidth, int aHeight) - Specified by:
setMinViewportDimension
in interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setMinViewportDimension
public void setMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension) - Specified by:
setMinViewportDimension
in interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setScaleMode
public void setScaleMode(org.refcodes.graphical.ScaleMode aMode) - Specified by:
setScaleMode
in interfaceorg.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
-
setSpriteFactory
-
setViewportDimension
public void setViewportDimension(org.refcodes.graphical.Dimension aDimension) - Specified by:
setViewportDimension
in interfaceorg.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
- Overrides:
setViewportDimension
in classorg.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 interfaceorg.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
- Overrides:
setViewportOffset
in classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,
S>, S>>
-
show
public void show()- Specified by:
show
in interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
hide
public void hide()- Specified by:
hide
in interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
toTotalHeight
public int toTotalHeight()- Specified by:
toTotalHeight
in interfaceorg.refcodes.graphical.ContainerMetrics
-
toTotalWidth
public int toTotalWidth()- Specified by:
toTotalWidth
in interfaceorg.refcodes.graphical.ContainerMetrics
-
withBackgroundFactory
-
withDragOpacity
-
withFieldDimension
-
withFieldDimension
-
withFieldDimension
-
withFieldDimension
-
withFieldGap
-
withFieldHeight
-
withFieldWidth
-
withGridMode
-
withHide
-
withInitialize
-
withMinViewportDimension
public FxCheckerboardViewer<P,S> withMinViewportDimension(org.refcodes.graphical.Dimension aDimension) -
withMinViewportDimension
-
withMinViewportDimension
public FxCheckerboardViewer<P,S> withMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension) -
withMoveMode
-
withScaleMode
-
withShow
-
withSpriteFactory
-
withViewportDimension
-
withViewportDimension
-
withViewportDimension
public FxCheckerboardViewer<P,S> withViewportDimension(org.refcodes.graphical.ViewportDimension aGridDimension) -
withViewportHeight
-
withViewportOffset
-
withViewportOffset
-
withViewportOffset
-
withViewportOffset
-
withViewportOffsetX
-
withViewportOffsetY
-
withViewportWidth
-
withVisible
-
withMoveViewportDurationMillis
- Overrides:
withMoveViewportDurationMillis
in classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,
S>, S>>
-
withDragViewportDurationMillis
- Overrides:
withDragViewportDurationMillis
in classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,
S>, S>>
-
toString
- Overrides:
toString
in classjavafx.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 dimensionaPrecedingFieldDimension
- the preceding field dimension
-