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 aPlayerS- The type which's instances represent aPlayerstate.
- 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, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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.ContainerDimensionPropertyNested 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.ContainerHeightPropertyNested 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.ContainerWidthPropertyNested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomatonNested 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.DragOpacityPropertyNested 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.FieldDimensionPropertyNested 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.FieldGapPropertyNested 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.FieldHeightPropertyNested 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.FieldWidthPropertyNested 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.GridDimensionPropertyNested 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.GridHeightPropertyNested 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.GridModePropertyNested 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.GridWidthPropertyNested 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.UncheckedInitializableNested 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.MinViewportDimensionPropertyNested 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.MoveModePropertyNested 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.RasterPropertyNested 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.ScaleModePropertyNested 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.ViewportDimensionPropertyNested 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.ViewportHeightPropertyNested 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.ViewportOffsetPropertyNested 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.ViewportOffsetXPropertyNested 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.ViewportOffsetYPropertyNested 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.ViewportWidthPropertyNested 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
FieldsModifier and TypeFieldDescriptionprotected FxBackgroundFactoryprotected javafx.scene.Nodeprotected javafx.scene.GroupFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionFxCheckerboardViewer(org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) Instantiates a newFxCheckerboardViewerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()intGets the adds the player duration in milliseconds.intGets the change player state in millis.intGets the change player visibility duration in milliseconds.intintintorg.refcodes.graphical.GridModeintorg.refcodes.graphical.ViewportDimensionintGets the move player duration in milliseconds.intGets the remove the player duration in milliseconds.org.refcodes.graphical.ScaleModevoidhide()protected voidhidePlayers(int aDurationMillis) Hide players.voidvoidonChangePlayerPositionEvent(org.refcodes.checkerboard.ChangePlayerPositionEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonCheckerboardEvent(org.refcodes.checkerboard.CheckerboardEvent<P, S> aEvent) voidonGridDimensionChangedEvent(org.refcodes.checkerboard.GridDimensionChangedEvent<P, S> aEvent) voidonGridModeChangedEvent(org.refcodes.checkerboard.GridModeChangedEvent<P, S> aEvent) voidonGridPositionClickedEvent(org.refcodes.checkerboard.GridPositionClickedEvent<P, S> aEvent) voidonPlayerAddedEvent(org.refcodes.checkerboard.PlayerAddedEvent<P, S> aEvent) voidonPlayerDraggabilityChangedEvent(org.refcodes.checkerboard.PlayerDraggabilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonPlayerEvent(org.refcodes.checkerboard.PlayerEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonPlayerPositionChangedEvent(org.refcodes.checkerboard.PlayerPositionChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonPlayerRemovedEvent(org.refcodes.checkerboard.PlayerRemovedEvent<P, S> aEvent) voidonPlayerStateChangedEvent(org.refcodes.checkerboard.PlayerStateChangedEvent<P, S> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonPlayerVisibilityChangedEvent(org.refcodes.checkerboard.PlayerVisibilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonSubscribe(org.refcodes.observer.SubscribeEvent<org.refcodes.checkerboard.Checkerboard<P, S>> aSubscribeEvent) voidonUnsubscribe(org.refcodes.observer.UnsubscribeEvent<org.refcodes.checkerboard.Checkerboard<P, S>> aUnsubscribeEvent) voidonViewportDimensionChangedEvent(org.refcodes.checkerboard.ViewportDimensionChangedEvent<P, S> aEvent) voidonViewportOffsetChangedEvent(org.refcodes.checkerboard.ViewportOffsetChangedEvent<P, S> aEvent) protected voidresetPlayers(int aDurationMillis) Reset players.protected voidscalePlayers(org.refcodes.graphical.FieldDimension aFieldDimension, org.refcodes.graphical.FieldDimension aPrecedingFieldDimension) Scale players.voidsetAddPlayerDurationMillis(int aAddPlayerDurationMillis) Sets the adds the player duration in milliseconds.voidsetBackgroundFactory(FxBackgroundFactory aBackgroundFactory) voidsetChangePlayerStateMillis(int aChangePlayerStateMillis) Sets the change player state in millis.voidsetChangePlayerVisibilityDurationMillis(int aChangePlayerVisibilityDurationMillis) Sets the change player visibility duration in milliseconds.voidsetFieldDimension(org.refcodes.graphical.Dimension aDimension) voidsetFieldDimension(org.refcodes.graphical.FieldDimension aField) voidsetMinViewportDimension(int aWidth, int aHeight) voidsetMinViewportDimension(org.refcodes.graphical.Dimension aDimension) voidsetMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension) voidsetMovePlayerDurationMillis(int aMovePlayerDurationMillis) Sets the move player duration in milliseconds.voidsetRemovePlayerDurationMillis(int aRemovePlayerDurationMillis) Sets the removes the player duration in millis.voidsetScaleMode(org.refcodes.graphical.ScaleMode aMode) voidsetSpriteFactory(FxSpriteFactory<S> aSpriteFactory) voidsetViewportDimension(org.refcodes.graphical.Dimension aDimension) voidsetViewportOffset(int aPosX, int aPosY) voidshow()toString()intintwithAddPlayerDurationMillis(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, onMouseClicked, setDragOpacity, setDragViewportDurationMillis, setFieldDimension, setFieldDimension, setFieldGap, setFieldHeight, setFieldWidth, setGridMode, setMoveMode, setMoveViewportDurationMillis, setRoot, setViewportDimension, setViewportDimension, setViewportHeight, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffsetX, setViewportOffsetY, setViewportWidthMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods 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, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty
letBackgroundFactoryMethods inherited from interface org.refcodes.checkerboard.CheckerboardViewer
centerViewortOffset, centerViewortOffsetMethods inherited from interface org.refcodes.graphical.DragOpacityAccessor
getDragOpacityMethods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator
setDragOpacityMethods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
letDragOpacityMethods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
setFieldDimension, setFieldDimensionMethods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionProperty
letFieldDimension, letFieldDimension, letFieldDimension, letFieldDimensionMethods inherited from interface org.refcodes.graphical.FieldGapAccessor
getFieldGapMethods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
setFieldGapMethods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
letFieldGapMethods inherited from interface org.refcodes.graphical.FieldHeightAccessor
getFieldHeightMethods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
setFieldHeightMethods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
letFieldHeightMethods inherited from interface org.refcodes.graphical.FieldWidthAccessor
getFieldWidthMethods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator
setFieldWidthMethods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty
letFieldWidthMethods inherited from interface org.refcodes.graphical.GridDimension
isInBounds, isInBounds, isInHeight, isInWidthMethods inherited from interface org.refcodes.graphical.GridModeAccessor.GridModeProperty
letGridModeMethods inherited from interface org.refcodes.component.Initializable
initializeUncheckedMethods inherited from interface org.refcodes.component.Initializable.InitializeBuilder
withInitializeUncheckedMethods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
letMinViewportDimension, letMinViewportDimension, letMinViewportDimensionMethods inherited from interface org.refcodes.graphical.MoveModeAccessor
getMoveModeMethods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
setMoveModeMethods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
letMoveModeMethods inherited from interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty
letScaleModeMethods inherited from interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty
letSpriteFactoryMethods inherited from interface javafx.css.Styleable
getStyleableNodeMethods inherited from interface org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
setViewportDimension, setViewportDimensionMethods inherited from interface org.refcodes.graphical.ViewportHeightAccessor
getViewportHeightMethods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator
setViewportHeightMethods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
letViewportHeightMethods inherited from interface org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
setViewportOffset, setViewportOffset, setViewportOffsetMethods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor
getViewportOffsetXMethods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator
setViewportOffsetXMethods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
letViewportOffsetXMethods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor
getViewportOffsetYMethods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator
setViewportOffsetYMethods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
letViewportOffsetYMethods inherited from interface org.refcodes.graphical.ViewportWidthAccessor
getViewportWidthMethods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator
setViewportWidthMethods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
letViewportWidthMethods inherited from interface org.refcodes.graphical.VisibleAccessor
isVisibleMethods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
setVisibleMethods 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 newFxCheckerboardViewerinstance. ATTENTION: As noFxSpriteFactoryis 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- theCheckerboardto be viewed.
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroyin 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
FxCheckerboardVieweras 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
FxCheckerboardVieweras of the builder pattern.
-
getContainerHeight
public int getContainerHeight()- Specified by:
getContainerHeightin interfaceorg.refcodes.graphical.ContainerHeightAccessor
-
getContainerWidth
public int getContainerWidth()- Specified by:
getContainerWidthin interfaceorg.refcodes.graphical.ContainerWidthAccessor
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin interfaceorg.refcodes.graphical.GridHeightAccessor
-
getGridMode
public org.refcodes.graphical.GridMode getGridMode()- Specified by:
getGridModein interfaceorg.refcodes.graphical.GridModeAccessor- Overrides:
getGridModein classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>, S>>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin interfaceorg.refcodes.graphical.GridWidthAccessor
-
getMinViewportDimension
public org.refcodes.graphical.ViewportDimension getMinViewportDimension()- Specified by:
getMinViewportDimensionin 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
FxCheckerboardVieweras 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
FxCheckerboardVieweras 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
FxCheckerboardVieweras of the builder pattern.
-
getScaleMode
public org.refcodes.graphical.ScaleMode getScaleMode()- Specified by:
getScaleModein interfaceorg.refcodes.graphical.ScaleModeAccessor
-
getSpriteFactory
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.refcodes.component.Initializable
-
onChangePlayerPositionEvent
-
onCheckerboardEvent
-
onPlayerDraggabilityChangedEvent
-
onGridDimensionChangedEvent
-
onGridModeChangedEvent
-
onPlayerAddedEvent
-
onPlayerEvent
-
onPlayerRemovedEvent
-
onPlayerPositionChangedEvent
-
onPlayerStateChangedEvent
-
onSubscribe
-
onUnsubscribe
-
onViewportDimensionChangedEvent
-
onGridPositionClickedEvent
-
onViewportOffsetChangedEvent
-
onPlayerVisibilityChangedEvent
-
setBackgroundFactory
-
setFieldDimension
public void setFieldDimension(org.refcodes.graphical.Dimension aDimension) - Specified by:
setFieldDimensionin interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator- Overrides:
setFieldDimensionin 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:
setFieldDimensionin interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator- Overrides:
setFieldDimensionin 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:
setMinViewportDimensionin interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setMinViewportDimension
public void setMinViewportDimension(int aWidth, int aHeight) - Specified by:
setMinViewportDimensionin interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setMinViewportDimension
public void setMinViewportDimension(org.refcodes.graphical.ViewportDimension aDimension) - Specified by:
setMinViewportDimensionin interfaceorg.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
-
setScaleMode
public void setScaleMode(org.refcodes.graphical.ScaleMode aMode) - Specified by:
setScaleModein interfaceorg.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
-
setSpriteFactory
-
setViewportDimension
public void setViewportDimension(org.refcodes.graphical.Dimension aDimension) - Specified by:
setViewportDimensionin interfaceorg.refcodes.graphical.ViewportDimension.ViewportDimensionMutator- Overrides:
setViewportDimensionin 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:
setViewportOffsetin interfaceorg.refcodes.graphical.ViewportOffset.ViewportOffsetMutator- Overrides:
setViewportOffsetin classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>, S>>
-
show
public void show()- Specified by:
showin interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
hide
public void hide()- Specified by:
hidein interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
toTotalHeight
public int toTotalHeight()- Specified by:
toTotalHeightin interfaceorg.refcodes.graphical.ContainerMetrics
-
toTotalWidth
public int toTotalWidth()- Specified by:
toTotalWidthin 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:
withMoveViewportDurationMillisin classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>, S>>
-
withDragViewportDurationMillis
- Overrides:
withDragViewportDurationMillisin classorg.refcodes.graphical.ext.javafx.AbstractFxGridViewportPane<FxCheckerboardViewer<P extends org.refcodes.checkerboard.Player<P,S>, S>>
-
toString
- Overrides:
toStringin 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
-