P
- The type representing a Player
S
- The type which's instances represent a Player
state.IMG
- the generic typeSF
- the generic typeBF
- the generic typeCBV
- The CheckerboardViewer
's type implementing this
interface.BackgroundFactoryAccessor<P>
, BackgroundFactoryAccessor.BackgroundFactoryBuilder<P,S>
, BackgroundFactoryAccessor.BackgroundFactoryMutator<P>
, BackgroundFactoryAccessor.BackgroundFactoryProperty<P>
, CheckerboardObserver<P,S>
, CheckerboardViewer<P,S,IMG>
, GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>
, SpriteFactoryAccessor<P>
, SpriteFactoryAccessor.SpriteFactoryBuilder<P,S>
, SpriteFactoryAccessor.SpriteFactoryMutator<P>
, SpriteFactoryAccessor.SpriteFactoryProperty<P>
, org.refcodes.component.Component
, org.refcodes.component.Destroyable
, org.refcodes.component.Initializable
, org.refcodes.component.Initializable.InitializeBuilder<P>
, 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<P>
, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator
, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
, org.refcodes.graphical.FieldDimension
, org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P>
, org.refcodes.graphical.FieldDimension.FieldDimensionMutator
, org.refcodes.graphical.FieldDimension.FieldDimensionProperty
, org.refcodes.graphical.FieldGapAccessor
, org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<P>
, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
, org.refcodes.graphical.FieldHeightAccessor
, org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<P>
, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
, org.refcodes.graphical.FieldWidthAccessor
, org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<P>
, 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<P>
, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
, org.refcodes.graphical.MoveModeAccessor
, org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<P>
, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
, org.refcodes.graphical.Raster
, org.refcodes.graphical.ScaleModeAccessor
, org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<P>
, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty
, org.refcodes.graphical.ViewportDimension
, org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<P>
, org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator
, org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty
, org.refcodes.graphical.ViewportHeightAccessor
, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<P>
, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator
, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
, org.refcodes.graphical.ViewportOffset
, org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<P>
, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator
, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty
, org.refcodes.graphical.ViewportOffsetXAccessor
, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<P>
, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator
, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
, org.refcodes.graphical.ViewportOffsetYAccessor
, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<P>
, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator
, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
, org.refcodes.graphical.ViewportWidthAccessor
, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<P>
, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator
, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
, org.refcodes.graphical.VisibleAccessor
, org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P>
, org.refcodes.graphical.VisibleAccessor.VisibleMutator
, org.refcodes.graphical.VisibleAccessor.VisibleProperty
, org.refcodes.observer.ObservableObserver<P>
public abstract class AbstractGraphicalCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,BF extends BackgroundFactory<IMG,CBV>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>> extends AbstractCheckerboardViewer<P,S,IMG,SF,CBV> implements GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>
BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends BackgroundFactory<?,?>,B extends BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF,B>>, BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends BackgroundFactory<?,?>>, BackgroundFactoryAccessor.BackgroundFactoryProperty<BF extends BackgroundFactory<?,?>>
org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B extends org.refcodes.graphical.ContainerDimension.ContainerDimensionBuilder<B>>, org.refcodes.graphical.ContainerDimension.ContainerDimensionMutator, org.refcodes.graphical.ContainerDimension.ContainerDimensionProperty
org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B extends org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B>>, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightMutator, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightProperty
org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B extends org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B>>, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthMutator, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthProperty
org.refcodes.component.Destroyable.DestroyAutomaton
org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B extends org.refcodes.graphical.DragOpacityAccessor.DragOpacityBuilder<B>>, org.refcodes.graphical.DragOpacityAccessor.DragOpacityMutator, org.refcodes.graphical.DragOpacityAccessor.DragOpacityProperty
org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B extends org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty
org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B extends org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapProperty
org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B extends org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightProperty
org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B extends org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthProperty
org.refcodes.graphical.GridDimension.GridDimensionBuilder<B extends org.refcodes.graphical.GridDimension.GridDimensionBuilder<B>>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty
org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty
org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty
org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B extends org.refcodes.graphical.MinViewportDimension.MinViewportDimensionBuilder<B>>, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionProperty
org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B extends org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModeProperty
org.refcodes.graphical.Raster.RasterBuilder<B extends org.refcodes.graphical.Raster.RasterBuilder<B>>, org.refcodes.graphical.Raster.RasterMutator, org.refcodes.graphical.Raster.RasterProperty
org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B extends org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B>>, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty
SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends SpriteFactory<?,?,?>,B extends SpriteFactoryAccessor.SpriteFactoryBuilder<SF,B>>, SpriteFactoryAccessor.SpriteFactoryMutator<SF extends SpriteFactory<?,?,?>>, SpriteFactoryAccessor.SpriteFactoryProperty<SF extends SpriteFactory<?,?,?>>
org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B extends org.refcodes.graphical.ViewportDimension.ViewportDimensionBuilder<B>>, org.refcodes.graphical.ViewportDimension.ViewportDimensionMutator, org.refcodes.graphical.ViewportDimension.ViewportDimensionProperty
org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B extends org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B extends org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B>>, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty
org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B extends org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B>>, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXProperty
org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B extends org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B>>, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYProperty
org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
Constructor | Description |
---|---|
AbstractGraphicalCheckerboardViewer(Checkerboard<P,S> aCheckerboard) |
Constructs the
GraphicalCheckerboardViewer for the given
Checkerboard . |
Modifier and Type | Method | Description |
---|---|---|
BF |
getBackgroundFactory() |
Retrieves the background factory from the background factory property.
|
protected Checkerboard<P,S> |
getCheckerboard() |
Gets the checkerboard.
|
int |
getContainerHeight() |
|
int |
getContainerWidth() |
|
int |
getFieldGap() |
|
int |
getFieldHeight() |
|
int |
getFieldWidth() |
|
org.refcodes.graphical.MoveMode |
getMoveMode() |
|
org.refcodes.graphical.ScaleMode |
getScaleMode() |
|
SF |
getSpriteFactory() |
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 |
toTotalHeight() |
|
int |
toTotalWidth() |
|
CBV |
withBackgroundFactory(BF aBackgroundFactory) |
With background factory.
|
CBV |
withFieldDimension(int aFieldWidth,
int aFieldHeight) |
With field dimension.
|
CBV |
withFieldDimension(int aFieldWidth,
int aFieldHeight,
int aGap) |
With field dimension.
|
CBV |
withFieldDimension(org.refcodes.graphical.Dimension aDimension) |
With field dimension.
|
CBV |
withFieldDimension(org.refcodes.graphical.FieldDimension aField) |
With field dimension.
|
CBV |
withFieldGap(int aFieldGap) |
With field gap.
|
CBV |
withFieldHeight(int aHeight) |
With field height.
|
CBV |
withFieldWidth(int aWidth) |
With field width.
|
CBV |
withHide() |
With hide.
|
CBV |
withInitialize() |
With initialize.
|
CBV |
withMoveMode(org.refcodes.graphical.MoveMode aMode) |
With move mode.
|
CBV |
withScaleMode(org.refcodes.graphical.ScaleMode aMode) |
With scale mode.
|
CBV |
withShow() |
With show.
|
CBV |
withSpriteFactory(SF aSpriteFactory) |
With sprite factory.
|
CBV |
withVisible(boolean isVisible) |
With visible.
|
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
letBitsPerSample
onChangePositionEvent, onCheckerboardEvent, onDraggabilityChangedEvent, onGridDimensionChangedEvent, onGridModeChangedEvent, onPlayerAddedEvent, onPlayerEvent, onPlayerRemovedEvent, onPositionChangedEvent, onStateChangedEvent, onViewportDimensionChangedEvent, onViewportOffsetChangedEvent, onVisibilityChangedEvent
withDragOpacity
setDragOpacity
letDragOpacity
letFieldDimension, letFieldDimension, letFieldDimension, letFieldDimension
letFieldGap
letFieldHeight
letFieldWidth
equals, isInBounds, isInBounds, isInHeight, isInWidth
initialize, initializeUnchecked
withInitializeUnchecked
getMinViewportDimension
withMinViewportDimension, withMinViewportDimension, withMinViewportDimension
setMinViewportDimension, setMinViewportDimension, setMinViewportDimension
letMinViewportDimension, letMinViewportDimension, letMinViewportDimension
letMoveMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
letScaleMode
letSpriteFactory
withViewportDimension, withViewportDimension, withViewportDimension
setViewportDimension, setViewportDimension, setViewportDimension
withViewportHeight
setViewportHeight
letViewportHeight
withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffset
setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffset
withViewportOffsetX
setViewportOffsetX
letViewportOffsetX
withViewportOffsetY
setViewportOffsetY
letViewportOffsetY
withViewportWidth
setViewportWidth
public AbstractGraphicalCheckerboardViewer(Checkerboard<P,S> aCheckerboard)
GraphicalCheckerboardViewer
for the given
Checkerboard
.aCheckerboard
- The Checkerboard
for which to construct the
viewer.public int getFieldGap()
getFieldGap
in interface org.refcodes.graphical.FieldGapAccessor
public void setFieldGap(int aFieldGap)
setFieldGap
in interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
public CBV withFieldGap(int aFieldGap)
public void show()
show
in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
public void hide()
hide
in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
public org.refcodes.graphical.MoveMode getMoveMode()
getMoveMode
in interface org.refcodes.graphical.MoveModeAccessor
public void setMoveMode(org.refcodes.graphical.MoveMode aMode)
setMoveMode
in interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
public org.refcodes.graphical.ScaleMode getScaleMode()
getScaleMode
in interface org.refcodes.graphical.ScaleModeAccessor
public void setScaleMode(org.refcodes.graphical.ScaleMode aMode)
setScaleMode
in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
public int getFieldHeight()
getFieldHeight
in interface org.refcodes.graphical.FieldHeightAccessor
public void setFieldDimension(int aFieldWidth, int aFieldHeight)
setFieldDimension
in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
public void setFieldDimension(org.refcodes.graphical.FieldDimension aField)
setFieldDimension
in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
public void setFieldDimension(org.refcodes.graphical.Dimension aDimension)
setFieldDimension
in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
public void setFieldWidth(int aWidth)
setFieldWidth
in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator
public int getFieldWidth()
getFieldWidth
in interface org.refcodes.graphical.FieldWidthAccessor
public void setFieldHeight(int aHeight)
setFieldHeight
in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
public int getContainerHeight()
getContainerHeight
in interface org.refcodes.graphical.ContainerHeightAccessor
public int getContainerWidth()
getContainerWidth
in interface org.refcodes.graphical.ContainerWidthAccessor
public CBV withFieldWidth(int aWidth)
public CBV withFieldHeight(int aHeight)
public CBV withFieldDimension(org.refcodes.graphical.FieldDimension aField)
public CBV withFieldDimension(org.refcodes.graphical.Dimension aDimension)
public CBV withInitialize() throws org.refcodes.component.InitializeException
withInitialize
in interface org.refcodes.component.Initializable.InitializeBuilder<P extends Player<P,S>>
withInitialize
in class AbstractCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>>
org.refcodes.component.InitializeException
- the initialize exceptionpublic CBV withShow()
public CBV withHide()
public CBV withVisible(boolean isVisible)
public CBV withMoveMode(org.refcodes.graphical.MoveMode aMode)
public CBV withScaleMode(org.refcodes.graphical.ScaleMode aMode)
public int toTotalWidth()
toTotalWidth
in interface org.refcodes.graphical.ContainerMetrics
public void setFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
setFieldDimension
in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
public CBV withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
public int toTotalHeight()
toTotalHeight
in interface org.refcodes.graphical.ContainerMetrics
public CBV withFieldDimension(int aFieldWidth, int aFieldHeight)
public void setSpriteFactory(SF aSpriteFactory)
setSpriteFactory
in interface SpriteFactoryAccessor.SpriteFactoryMutator<P extends Player<P,S>>
aSpriteFactory
- The sprite factory to be stored by the sprite
factory property.public SF getSpriteFactory()
getSpriteFactory
in interface SpriteFactoryAccessor<P extends Player<P,S>>
public CBV withSpriteFactory(SF aSpriteFactory)
withSpriteFactory
in interface SpriteFactoryAccessor.SpriteFactoryBuilder<P extends Player<P,S>,S>
aSpriteFactory
- the sprite factorypublic CBV withBackgroundFactory(BF aBackgroundFactory)
withBackgroundFactory
in interface BackgroundFactoryAccessor.BackgroundFactoryBuilder<P extends Player<P,S>,S>
aBackgroundFactory
- the background factorypublic void setBackgroundFactory(BF aBackgroundFactory)
setBackgroundFactory
in interface BackgroundFactoryAccessor.BackgroundFactoryMutator<P extends Player<P,S>>
aBackgroundFactory
- The background factory to be stored by the
background factory property.public BF getBackgroundFactory()
getBackgroundFactory
in interface BackgroundFactoryAccessor<P extends Player<P,S>>
public void onUnsubscribe(org.refcodes.observer.UnsubscribeEvent<Checkerboard<P,S>> aUnsubscribeEvent)
protected Checkerboard<P,S> getCheckerboard()
getCheckerboard
in class AbstractCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>>
Copyright © 2021. All rights reserved.