Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Class AbstractGraphicalCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,BF extends BackgroundFactory<IMG>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>>
java.lang.Object
org.refcodes.checkerboard.AbstractCheckerboardViewer<P,S,IMG,SF,CBV>
org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>
- Type Parameters:
P
- The type representing aPlayer
S
- The type which's instances represent aPlayer
state.IMG
- the generic typeSF
- the generic typeBF
- the generic typeCBV
- TheCheckerboardViewer
's type implementing this interface.
- All Implemented Interfaces:
BackgroundFactoryAccessor<BF>
,BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF,
,CBV> BackgroundFactoryAccessor.BackgroundFactoryMutator<BF>
,BackgroundFactoryAccessor.BackgroundFactoryProperty<BF>
,CheckerboardObserver<P,
,S> CheckerboardViewer<P,
,S, CBV> GraphicalCheckerboardViewer<P,
,S, IMG, SF, BF, CBV> SpriteFactoryAccessor<SF>
,SpriteFactoryAccessor.SpriteFactoryBuilder<SF,
,CBV> SpriteFactoryAccessor.SpriteFactoryMutator<SF>
,SpriteFactoryAccessor.SpriteFactoryProperty<SF>
,org.refcodes.component.Component
,org.refcodes.component.Destroyable
,org.refcodes.component.Initializable
,org.refcodes.component.Initializable.InitializeBuilder<CBV>
,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<CBV>
,org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator
,org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
,org.refcodes.graphical.FieldDimension
,org.refcodes.graphical.FieldDimension.FieldDimensionAccessor
,org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<CBV>
,org.refcodes.graphical.FieldDimension.FieldDimensionMutator
,org.refcodes.graphical.FieldDimension.FieldDimensionProperty
,org.refcodes.graphical.FieldGapAccessor
,org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<CBV>
,org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
,org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
,org.refcodes.graphical.FieldHeightAccessor
,org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<CBV>
,org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
,org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
,org.refcodes.graphical.FieldWidthAccessor
,org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<CBV>
,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.GridWidthAccessor
,org.refcodes.graphical.MinViewportDimension
,org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<CBV>
,org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
,org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
,org.refcodes.graphical.MoveModeAccessor
,org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<CBV>
,org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
,org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
,org.refcodes.graphical.Raster
,org.refcodes.graphical.ScaleModeAccessor
,org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<CBV>
,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<CBV>
,org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
,org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty
,org.refcodes.graphical.ViewportHeightAccessor
,org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<CBV>
,org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator
,org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
,org.refcodes.graphical.ViewportOffset
,org.refcodes.graphical.ViewportOffset.ViewportOffsetAccessor
,org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<CBV>
,org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
,org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty
,org.refcodes.graphical.ViewportOffsetXAccessor
,org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<CBV>
,org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator
,org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
,org.refcodes.graphical.ViewportOffsetYAccessor
,org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<CBV>
,org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator
,org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
,org.refcodes.graphical.ViewportWidthAccessor
,org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<CBV>
,org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator
,org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
,org.refcodes.graphical.VisibleAccessor
,org.refcodes.graphical.VisibleAccessor.VisibleBuilder<CBV>
,org.refcodes.graphical.VisibleAccessor.VisibleMutator
,org.refcodes.graphical.VisibleAccessor.VisibleProperty
,org.refcodes.observer.ObservableObserver<Checkerboard<P,
S>>
public abstract class AbstractGraphicalCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,BF extends BackgroundFactory<IMG>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>>
extends AbstractCheckerboardViewer<P,S,IMG,SF,CBV>
implements GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>
The Class AbstractGraphicalCheckerboardViewer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.checkerboard.BackgroundFactoryAccessor
BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends BackgroundFactory<?>,
B extends BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF, B>>, BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends BackgroundFactory<?>>, BackgroundFactoryAccessor.BackgroundFactoryProperty<BF extends BackgroundFactory<?>> Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerDimension
org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B extends org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B>>, org.refcodes.graphical.ContainerDimension.ContainerDimensionMutator, org.refcodes.graphical.ContainerDimension.ContainerDimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerHeightAccessor
org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B extends org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B>>, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightMutator, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ContainerWidthAccessor
org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B extends org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B>>, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthMutator, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomaton
Nested classes/interfaces inherited from interface org.refcodes.graphical.DragOpacityAccessor
org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B extends org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B>>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldDimension
org.refcodes.graphical.FieldDimension.FieldDimensionAccessor, org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B extends org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldGapAccessor
org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B extends org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldHeightAccessor
org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B extends org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldWidthAccessor
org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B extends org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridDimension
org.refcodes.graphical.GridDimension.GridDimensionAccessor, org.refcodes.graphical.GridDimension.GridDimensionBuilder<B extends org.refcodes.graphical.GridDimension.GridDimensionBuilder<B>>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridHeightAccessor
org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridModeAccessor
org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridWidthAccessor
org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Initializable
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
Nested classes/interfaces inherited from interface org.refcodes.graphical.MinViewportDimension
org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B extends org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B>>, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.MoveModeAccessor
org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B extends org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.Raster
org.refcodes.graphical.Raster.RasterAccessor, org.refcodes.graphical.Raster.RasterBuilder<B extends org.refcodes.graphical.Raster.RasterBuilder<B>>, org.refcodes.graphical.Raster.RasterMutator, org.refcodes.graphical.Raster.RasterProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ScaleModeAccessor
org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B extends org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B>>, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty
Nested classes/interfaces inherited from interface org.refcodes.checkerboard.SpriteFactoryAccessor
SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends SpriteFactory<?,
?, ?>, B extends SpriteFactoryAccessor.SpriteFactoryBuilder<SF, B>>, SpriteFactoryAccessor.SpriteFactoryMutator<SF extends SpriteFactory<?, ?, ?>>, SpriteFactoryAccessor.SpriteFactoryProperty<SF extends SpriteFactory<?, ?, ?>> Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportDimension
org.refcodes.graphical.ViewportDimension.ViewportDimensionAccessor, org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B extends org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B>>, org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator, org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportHeightAccessor
org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B extends org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffset
org.refcodes.graphical.ViewportOffset.ViewportOffsetAccessor, org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B extends org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B>>, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor
org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B extends org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B>>, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor
org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B extends org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B>>, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportWidthAccessor
org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
Nested classes/interfaces inherited from interface org.refcodes.graphical.VisibleAccessor
org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
-
Field Summary
Fields inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewer
_checkerboard
-
Constructor Summary
ConstructorDescriptionAbstractGraphicalCheckerboardViewer
(Checkerboard<P, S> aCheckerboard) Constructs theGraphicalCheckerboardViewer
for the givenCheckerboard
. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the background factory from the background factory property.int
int
int
int
int
org.refcodes.graphical.MoveMode
org.refcodes.graphical.ScaleMode
Retrieves the sprite factory from the sprite factory property.void
hide()
void
onUnsubscribe
(org.refcodes.observer.UnsubscribeEvent<Checkerboard<P, S>> aUnsubscribeEvent) void
setBackgroundFactory
(BF aBackgroundFactory) Sets the background factory for the background factory property.void
setFieldDimension
(int aFieldWidth, int aFieldHeight) void
setFieldDimension
(int aFieldWidth, int aFieldHeight, int aGap) void
setFieldDimension
(org.refcodes.graphical.Dimension aDimension) void
setFieldDimension
(org.refcodes.graphical.FieldDimension aField) void
setFieldGap
(int aFieldGap) void
setFieldHeight
(int aHeight) void
setFieldWidth
(int aWidth) void
setMoveMode
(org.refcodes.graphical.MoveMode aMode) void
setScaleMode
(org.refcodes.graphical.ScaleMode aMode) void
setSpriteFactory
(SF aSpriteFactory) Sets the sprite factory for the sprite factory property.void
show()
int
int
withBackgroundFactory
(BF aBackgroundFactory) With background factory.withFieldDimension
(int aFieldWidth, int aFieldHeight) With field dimension.withFieldDimension
(int aFieldWidth, int aFieldHeight, int aGap) With field dimension.withFieldDimension
(org.refcodes.graphical.Dimension aDimension) With field dimension.withFieldDimension
(org.refcodes.graphical.FieldDimension aField) With field dimension.withFieldGap
(int aFieldGap) With field gap.withFieldHeight
(int aHeight) With field height.withFieldWidth
(int aWidth) With field width.withHide()
With hide.With initialize.withMoveMode
(org.refcodes.graphical.MoveMode aMode) With move mode.withScaleMode
(org.refcodes.graphical.ScaleMode aMode) With scale mode.withShow()
With show.withSpriteFactory
(SF aSpriteFactory) With sprite factory.withVisible
(boolean isVisible) With visible.Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewer
centerViewortOffset, centerViewortOffset, destroy, getGridHeight, getGridMode, getGridWidth, getMinViewportDimension, getViewportHeight, getViewportOffsetX, getViewportOffsetY, getViewportWidth, onSubscribe, setMinViewportDimension, setMinViewportDimension, setMinViewportDimension, setViewportDimension, setViewportDimension, setViewportDimension, setViewportHeight, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffsetX, setViewportOffsetY, setViewportWidth, withMinViewportDimension, withMinViewportDimension, withMinViewportDimension, withViewportDimension, withViewportDimension, withViewportDimension, withViewportHeight, withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffsetX, withViewportOffsetY, withViewportWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty
letBackgroundFactory
Methods inherited from interface org.refcodes.checkerboard.CheckerboardObserver
onChangePlayerPositionEvent, onCheckerboardEvent, onGridDimensionChangedEvent, onGridModeChangedEvent, onGridPositionClickedEvent, onPlayerAddedEvent, onPlayerDraggabilityChangedEvent, onPlayerEvent, onPlayerPositionChangedEvent, onPlayerRemovedEvent, onPlayerStateChangedEvent, onPlayerVisibilityChangedEvent, onViewportDimensionChangedEvent, onViewportOffsetChangedEvent
Methods inherited from interface org.refcodes.checkerboard.CheckerboardViewer
centerViewortOffset, centerViewortOffset
Methods inherited from interface org.refcodes.component.Destroyable
destroy
Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor
getDragOpacity
Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder
withDragOpacity
Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator
setDragOpacity
Methods inherited from interface org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
letDragOpacity
Methods inherited from interface org.refcodes.graphical.FieldDimension.FieldDimensionProperty
letFieldDimension, letFieldDimension, letFieldDimension, letFieldDimension
Methods inherited from interface org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
letFieldGap
Methods inherited from interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
letFieldHeight
Methods inherited from interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty
letFieldWidth
Methods inherited from interface org.refcodes.graphical.GridDimension
isInBounds, isInBounds, isInHeight, isInWidth
Methods inherited from interface org.refcodes.graphical.GridHeightAccessor
getGridHeight
Methods inherited from interface org.refcodes.graphical.GridModeAccessor
getGridMode
Methods inherited from interface org.refcodes.graphical.GridWidthAccessor
getGridWidth
Methods inherited from interface org.refcodes.component.Initializable
initialize, initializeUnchecked
Methods inherited from interface org.refcodes.component.Initializable.InitializeBuilder
withInitializeUnchecked
Methods inherited from interface org.refcodes.graphical.MinViewportDimension
getMinViewportDimension
Methods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder
withMinViewportDimension, withMinViewportDimension, withMinViewportDimension
Methods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
setMinViewportDimension, setMinViewportDimension, setMinViewportDimension
Methods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
letMinViewportDimension, letMinViewportDimension, letMinViewportDimension
Methods inherited from interface org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
letMoveMode
Methods inherited from interface org.refcodes.observer.ObservableObserver
onSubscribe
Methods inherited from interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty
letScaleMode
Methods inherited from interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty
letSpriteFactory
Methods inherited from interface org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder
withViewportDimension, withViewportDimension, withViewportDimension
Methods inherited from interface org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
setViewportDimension, setViewportDimension, setViewportDimension
Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor
getViewportHeight
Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder
withViewportHeight
Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator
setViewportHeight
Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
letViewportHeight
Methods inherited from interface org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder
withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffset
Methods inherited from interface org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffset
Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor
getViewportOffsetX
Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder
withViewportOffsetX
Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator
setViewportOffsetX
Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
letViewportOffsetX
Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor
getViewportOffsetY
Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder
withViewportOffsetY
Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator
setViewportOffsetY
Methods inherited from interface org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
letViewportOffsetY
Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor
getViewportWidth
Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder
withViewportWidth
Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator
setViewportWidth
Methods inherited from interface org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
letViewportWidth
Methods inherited from interface org.refcodes.graphical.VisibleAccessor
isVisible
Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
setVisible
Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleProperty
letVisible
-
Constructor Details
-
AbstractGraphicalCheckerboardViewer
Constructs theGraphicalCheckerboardViewer
for the givenCheckerboard
.- Parameters:
aCheckerboard
- TheCheckerboard
for which to construct the viewer.
-
-
Method Details
-
getFieldGap
public int getFieldGap()- Specified by:
getFieldGap
in interfaceorg.refcodes.graphical.FieldGapAccessor
-
setFieldGap
public void setFieldGap(int aFieldGap) - Specified by:
setFieldGap
in interfaceorg.refcodes.graphical.FieldGapAccessor.FieldGapMutator
-
withFieldGap
With field gap. -
show
public void show()- Specified by:
show
in interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
hide
public void hide()- Specified by:
hide
in interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
getMoveMode
public org.refcodes.graphical.MoveMode getMoveMode()- Specified by:
getMoveMode
in interfaceorg.refcodes.graphical.MoveModeAccessor
-
setMoveMode
public void setMoveMode(org.refcodes.graphical.MoveMode aMode) - Specified by:
setMoveMode
in interfaceorg.refcodes.graphical.MoveModeAccessor.MoveModeMutator
-
getScaleMode
public org.refcodes.graphical.ScaleMode getScaleMode()- Specified by:
getScaleMode
in interfaceorg.refcodes.graphical.ScaleModeAccessor
-
setScaleMode
public void setScaleMode(org.refcodes.graphical.ScaleMode aMode) - Specified by:
setScaleMode
in interfaceorg.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
-
getFieldHeight
public int getFieldHeight()- Specified by:
getFieldHeight
in interfaceorg.refcodes.graphical.FieldHeightAccessor
-
setFieldDimension
public void setFieldDimension(int aFieldWidth, int aFieldHeight) - Specified by:
setFieldDimension
in interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
-
setFieldDimension
public void setFieldDimension(org.refcodes.graphical.FieldDimension aField) - Specified by:
setFieldDimension
in interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
-
setFieldDimension
public void setFieldDimension(org.refcodes.graphical.Dimension aDimension) - Specified by:
setFieldDimension
in interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
-
setFieldWidth
public void setFieldWidth(int aWidth) - Specified by:
setFieldWidth
in interfaceorg.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator
-
getFieldWidth
public int getFieldWidth()- Specified by:
getFieldWidth
in interfaceorg.refcodes.graphical.FieldWidthAccessor
-
setFieldHeight
public void setFieldHeight(int aHeight) - Specified by:
setFieldHeight
in interfaceorg.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
-
getContainerHeight
public int getContainerHeight()- Specified by:
getContainerHeight
in interfaceorg.refcodes.graphical.ContainerHeightAccessor
-
getContainerWidth
public int getContainerWidth()- Specified by:
getContainerWidth
in interfaceorg.refcodes.graphical.ContainerWidthAccessor
-
withFieldWidth
With field width. -
withFieldHeight
With field height. -
withFieldDimension
With field dimension. -
withFieldDimension
With field dimension. -
withInitialize
With initialize.- Specified by:
withInitialize
in interfaceorg.refcodes.component.Initializable.InitializeBuilder<P extends Player<P,
S>> - Overrides:
withInitialize
in classAbstractCheckerboardViewer<P extends Player<P,
S>, S, IMG, SF extends SpriteFactory<IMG, S, ?>, CBV extends GraphicalCheckerboardViewer<P, S, IMG, SF, BF, CBV>> - Returns:
- the cbv
- Throws:
org.refcodes.component.InitializeException
- the initialize exception
-
withShow
With show. -
withHide
With hide. -
withVisible
With visible. -
withMoveMode
With move mode. -
withScaleMode
With scale mode. -
toTotalWidth
public int toTotalWidth()- Specified by:
toTotalWidth
in interfaceorg.refcodes.graphical.ContainerMetrics
-
setFieldDimension
public void setFieldDimension(int aFieldWidth, int aFieldHeight, int aGap) - Specified by:
setFieldDimension
in interfaceorg.refcodes.graphical.FieldDimension.FieldDimensionMutator
-
withFieldDimension
With field dimension. -
toTotalHeight
public int toTotalHeight()- Specified by:
toTotalHeight
in interfaceorg.refcodes.graphical.ContainerMetrics
-
withFieldDimension
With field dimension. -
setSpriteFactory
Sets the sprite factory for the sprite factory property.- Specified by:
setSpriteFactory
in interfaceSpriteFactoryAccessor.SpriteFactoryMutator<P extends Player<P,
S>> - Parameters:
aSpriteFactory
- The sprite factory to be stored by the sprite factory property.
-
getSpriteFactory
Retrieves the sprite factory from the sprite factory property.- Specified by:
getSpriteFactory
in interfaceSpriteFactoryAccessor<P extends Player<P,
S>> - Returns:
- The sprite factory stored by the sprite factory property.
-
withSpriteFactory
With sprite factory.- Specified by:
withSpriteFactory
in interfaceSpriteFactoryAccessor.SpriteFactoryBuilder<P extends Player<P,
S>, S> - Parameters:
aSpriteFactory
- the sprite factory- Returns:
- the cbv
-
withBackgroundFactory
With background factory.- Specified by:
withBackgroundFactory
in interfaceBackgroundFactoryAccessor.BackgroundFactoryBuilder<P extends Player<P,
S>, S> - Parameters:
aBackgroundFactory
- the background factory- Returns:
- the cbv
-
setBackgroundFactory
Sets the background factory for the background factory property.- Specified by:
setBackgroundFactory
in interfaceBackgroundFactoryAccessor.BackgroundFactoryMutator<P extends Player<P,
S>> - Parameters:
aBackgroundFactory
- The background factory to be stored by the background factory property.
-
getBackgroundFactory
Retrieves the background factory from the background factory property.- Specified by:
getBackgroundFactory
in interfaceBackgroundFactoryAccessor<P extends Player<P,
S>> - Returns:
- The background factory stored by the background factory property.
-
onUnsubscribe
public void onUnsubscribe(org.refcodes.observer.UnsubscribeEvent<Checkerboard<P, S>> aUnsubscribeEvent)
-