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<P,,S>> org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder<FxBackgroundFactory<P,,S>, FxCheckerboardViewer<P, S>> org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryMutator<FxBackgroundFactory<P,,S>> org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty<FxBackgroundFactory<P,,S>> 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<P, S>, 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.ContentAccessor<javafx.scene.Node>,org.refcodes.graphical.ContentAccessor.ContentBuilder<javafx.scene.Node,,FxCheckerboardViewer<P, S>> org.refcodes.graphical.ContentAccessor.ContentMutator<javafx.scene.Node>,org.refcodes.graphical.ContentAccessor.ContentProperty<javafx.scene.Node>,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.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.ViewportDimension,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.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<P,S>,FxCheckerboardViewer<P,S>>, org.refcodes.checkerboard.CheckerboardObserver<P,S>
The class
FxCheckerboardViewer uses the FxGridViewportPane to
implement a CheckerboardViewer.
For scaling, this might be an idea:
"http://gillius.org/blog/2013/02/javafx-window-scaling-on-resize.html" The
Class FxCheckerboardViewerImpl.-
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.graphical.ContentAccessor
org.refcodes.graphical.ContentAccessor.ContentBuilder<T extends Object,B extends org.refcodes.graphical.ContentAccessor.ContentBuilder<T, B>>, org.refcodes.graphical.ContentAccessor.ContentMutator<T extends Object>, org.refcodes.graphical.ContentAccessor.ContentProperty<T extends Object> Nested 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.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.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.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.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.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
Fields 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.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 aDurationInMillis) Hide players.voidvoidonChangePositionEvent(org.refcodes.checkerboard.ChangePositionEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonCheckerboardEvent(org.refcodes.checkerboard.CheckerboardEvent<P, S> aEvent) voidonDraggabilityChangedEvent(org.refcodes.checkerboard.DraggabilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonGridDimensionChangedEvent(org.refcodes.checkerboard.GridDimensionChangedEvent<P, S> aEvent) voidonGridModeChangedEvent(org.refcodes.checkerboard.GridModeChangedEvent<P, S> aEvent) voidonPlayerAddedEvent(org.refcodes.checkerboard.PlayerAddedEvent<P, S> aEvent) voidonPlayerEvent(org.refcodes.checkerboard.PlayerEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonPlayerRemovedEvent(org.refcodes.checkerboard.PlayerRemovedEvent<P, S> aEvent) voidonPositionChangedEvent(org.refcodes.checkerboard.PositionChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) voidonStateChangedEvent(org.refcodes.checkerboard.StateChangedEvent<P, S> 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) voidonVisibilityChangedEvent(org.refcodes.checkerboard.VisibilityChangedEvent<P> aEvent, org.refcodes.checkerboard.Checkerboard<P, S> aCheckerboard) protected voidresetPlayers(int aDurationInMillis) Reset players.protected voidscalePlayers(org.refcodes.graphical.FieldDimension aFieldDimension, org.refcodes.graphical.FieldDimension aPrecedingFieldDimension) Scale players.voidsetAddPlayerDurationInMillis(int aAddPlayerDurationInMillis) Sets the adds the player duration in milliseconds.voidsetBackgroundFactory(FxBackgroundFactory<P, S> aBackgroundFactory) voidsetChangePlayerStateInMillis(int aChangePlayerStateInMillis) Sets the change player state in millis.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) voidsetMovePlayerDurationInMillis(int aMovePlayerDurationInMillis) Sets the move player duration in milliseconds.voidsetRemovePlayerDurationInMillis(int aRemovePlayerDurationInMillis) 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()intintwithAddPlayerDurationInMillis(int aAddPlayerDurationInMillis) With add player duration in millis.withBackgroundFactory(FxBackgroundFactory<P, S> aBackgroundFactory) withChangePlayerStateInMillis(int aChangePlayerStateInMillis) With change player state in millis.withContent(javafx.scene.Node aContent) withDragOpacity(double aOpacity) 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) withMovePlayerDurationInMillis(int aMovePlayerDurationInMillis) With move player duration in milliseconds.withRemovePlayerDurationInMillis(int aRemovePlayerDurationInMillis) 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, getFieldGap, getFieldHeight, getFieldWidth, getMoveMode, getViewportHeight, getViewportOffsetX, getViewportOffsetY, getViewportWidth, setContent, setDragOpacity, setFieldDimension, setFieldDimension, setFieldGap, setFieldHeight, setFieldWidth, setGridMode, setMoveMode, 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.graphical.ContentAccessor.ContentProperty
letContentMethods 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
-
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
-
getAddPlayerDurationInMillis
public int getAddPlayerDurationInMillis()Gets the adds the player duration in milliseconds.- Returns:
- the adds the player duration in milliseconds
-
getBackgroundFactory
-
getChangePlayerStateInMillis
public int getChangePlayerStateInMillis()Gets the change player state in millis.- Returns:
- the change player state in millis
-
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
-
getMovePlayerDurationInMillis
public int getMovePlayerDurationInMillis()Gets the move player duration in milliseconds.- Returns:
- the move player duration in milliseconds
-
getRemovePlayerDurationInMillis
public int getRemovePlayerDurationInMillis()Gets the remove the player duration in milliseconds.- Returns:
- the player remove duration in milliseconds
-
getScaleMode
public org.refcodes.graphical.ScaleMode getScaleMode()- Specified by:
getScaleModein interfaceorg.refcodes.graphical.ScaleModeAccessor
-
getSpriteFactory
-
initialize
public void initialize() throws org.refcodes.component.InitializeException- Specified by:
initializein interfaceorg.refcodes.component.Initializable- Throws:
org.refcodes.component.InitializeException
-
onChangePositionEvent
-
onCheckerboardEvent
-
onDraggabilityChangedEvent
-
onGridDimensionChangedEvent
-
onGridModeChangedEvent
-
onPlayerAddedEvent
-
onPlayerEvent
-
onPlayerRemovedEvent
-
onPositionChangedEvent
-
onStateChangedEvent
-
onSubscribe
-
onUnsubscribe
-
onViewportDimensionChangedEvent
-
onViewportOffsetChangedEvent
-
onVisibilityChangedEvent
-
setAddPlayerDurationInMillis
public void setAddPlayerDurationInMillis(int aAddPlayerDurationInMillis) Sets the adds the player duration in milliseconds.- Parameters:
aAddPlayerDurationInMillis- the new adds the player duration in milliseconds
-
setBackgroundFactory
-
setChangePlayerStateInMillis
public void setChangePlayerStateInMillis(int aChangePlayerStateInMillis) Sets the change player state in millis.- Parameters:
aChangePlayerStateInMillis- the new change player state in millis
-
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
-
setMovePlayerDurationInMillis
public void setMovePlayerDurationInMillis(int aMovePlayerDurationInMillis) Sets the move player duration in milliseconds.- Parameters:
aMovePlayerDurationInMillis- the new move player duration in milliseconds
-
setRemovePlayerDurationInMillis
public void setRemovePlayerDurationInMillis(int aRemovePlayerDurationInMillis) Sets the removes the player duration in millis.- Parameters:
aRemovePlayerDurationInMillis- the new removes the player duration in millis
-
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
-
withAddPlayerDurationInMillis
With add player duration in millis.- Parameters:
aAddPlayerDurationInMillis- the add player duration in millis- Returns:
- the fx checkerboard viewer
-
withBackgroundFactory
-
withChangePlayerStateInMillis
With change player state in millis.- Parameters:
aChangePlayerStateInMillis- the change player state in millis- Returns:
- the fx checkerboard viewer
-
withContent
-
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
-
withMovePlayerDurationInMillis
With move player duration in milliseconds.- Parameters:
aMovePlayerDurationInMillis- the move player duration in milliseconds- Returns:
- the fx checkerboard viewer
-
withRemovePlayerDurationInMillis
public FxCheckerboardViewer<P,S> withRemovePlayerDurationInMillis(int aRemovePlayerDurationInMillis) With remove player duration in millis.- Parameters:
aRemovePlayerDurationInMillis- the remove player duration in millis- Returns:
- the fx checkerboard viewer
-
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
-
toString
- Overrides:
toStringin classjavafx.scene.Node
-
hidePlayers
protected void hidePlayers(int aDurationInMillis) Hide players.- Parameters:
aDurationInMillis- the duration in milliseconds
-
resetPlayers
protected void resetPlayers(int aDurationInMillis) Reset players.- Parameters:
aDurationInMillis- 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
-