Package org.refcodes.checkerboard
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>>
- 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 generic 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<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>
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<?,?>>, BackgroundFactoryAccessor.BackgroundFactoryPropertyBuilder<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, org.refcodes.graphical.ContainerDimension.ContainerDimensionPropertyBuilder
-
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.FieldDimensionBuilder<B extends org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<B>>, org.refcodes.graphical.FieldDimension.FieldDimensionMutator, org.refcodes.graphical.FieldDimension.FieldDimensionProperty, org.refcodes.graphical.FieldDimension.FieldDimensionPropertyBuilder
-
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.GridDimensionBuilder<B extends org.refcodes.graphical.GridDimension.GridDimensionBuilder<B>>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty, org.refcodes.graphical.GridDimension.GridDimensionPropertyBuilder
-
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, org.refcodes.graphical.MinViewportDimension.MinViewportDimensionPropertyBuilderBuilder
-
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.RasterBuilder<B extends org.refcodes.graphical.Raster.RasterBuilder<B>>, org.refcodes.graphical.Raster.RasterMutator, org.refcodes.graphical.Raster.RasterProperty, org.refcodes.graphical.Raster.RasterPropertyBuilder
-
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<?,?,?>>, SpriteFactoryAccessor.SpriteFactoryPropertyBuilder<SF extends 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.ViewportDimensionProperty, org.refcodes.graphical.ViewportDimension.ViewportDimensionPropertyBuilderBuilder
-
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.ViewportOffsetBuilder<B extends org.refcodes.graphical.ViewportOffset.ViewportOffsetBuilder<B>>, org.refcodes.graphical.ViewportOffset.ViewportOffsetMutator, org.refcodes.graphical.ViewportOffset.ViewportOffsetProperty, org.refcodes.graphical.ViewportOffset.ViewportOffsetPropertyBuilder
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphicalCheckerboardViewer(Checkerboard<P,S> aCheckerboard)
Constructs theGraphicalCheckerboardViewer
for the givenCheckerboard
.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewer
destroy, getGridHeight, getGridMode, getGridWidth, getMinViewportDimension, getViewportHeight, getViewportOffsetX, getViewportOffsetY, getViewportWidth, onSubscribe, setMinViewportDimension, setMinViewportDimension, setViewportDimension, setViewportDimension, setViewportDimension, setViewportHeight, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffset, setViewportOffsetX, setViewportOffsetY, setViewportWidth, withMinViewportDimension, withMinViewportDimension, withViewportDimension, withViewportDimension, withViewportDimension, withViewportHeight, withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffset, withViewportOffsetX, withViewportOffsetY, withViewportWidth
-
Methods inherited from interface org.refcodes.checkerboard.CheckerboardObserver
onChangePositionEvent, onCheckerboardEvent, onDraggabilityChangedEvent, onGridDimensionChangedEvent, onGridModeChangedEvent, onPlayerAddedEvent, onPlayerEvent, onPlayerRemovedEvent, onPositionChangedEvent, onStateChangedEvent, onViewportDimensionChangedEvent, onViewportOffsetChangedEvent, onVisibilityChangedEvent
-
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.GridDimension
equals, isInBounds, isInBounds, isInHeight, isInWidth
-
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
-
Methods inherited from interface org.refcodes.graphical.MinViewportDimension.MinViewportDimensionMutator
setMinViewportDimension, setMinViewportDimension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.ViewportHeightBuilder
withViewportHeight
-
Methods inherited from interface org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator
setViewportHeight
-
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.ViewportOffsetXBuilder
withViewportOffsetX
-
Methods inherited from interface org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator
setViewportOffsetX
-
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.ViewportWidthAccessor.ViewportWidthBuilder
withViewportWidth
-
-
-
-
Constructor Detail
-
AbstractGraphicalCheckerboardViewer
public AbstractGraphicalCheckerboardViewer(Checkerboard<P,S> aCheckerboard)
Constructs theGraphicalCheckerboardViewer
for the givenCheckerboard
.- Parameters:
aCheckerboard
- TheCheckerboard
for which to construct the viewer.
-
-
Method Detail
-
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
public CBV withFieldGap(int aFieldGap)
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
public CBV withFieldWidth(int aWidth)
With field width.
-
withFieldHeight
public CBV withFieldHeight(int aHeight)
With field height.
-
withFieldDimension
public CBV withFieldDimension(org.refcodes.graphical.FieldDimension aField)
With field dimension.
-
withFieldDimension
public CBV withFieldDimension(org.refcodes.graphical.Dimension aDimension)
With field dimension.
-
withInitialize
public CBV withInitialize() throws org.refcodes.component.InitializeException
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
public CBV withShow()
With show.
-
withHide
public CBV withHide()
With hide.
-
withVisible
public CBV withVisible(boolean isVisible)
With visible.
-
withMoveMode
public CBV withMoveMode(org.refcodes.graphical.MoveMode aMode)
With move mode.
-
withScaleMode
public CBV withScaleMode(org.refcodes.graphical.ScaleMode aMode)
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
public CBV withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
With field dimension.
-
toTotalHeight
public int toTotalHeight()
- Specified by:
toTotalHeight
in interfaceorg.refcodes.graphical.ContainerMetrics
-
withFieldDimension
public CBV withFieldDimension(int aFieldWidth, int aFieldHeight)
With field dimension.
-
setSpriteFactory
public void setSpriteFactory(SF aSpriteFactory)
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
public SF 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
public CBV withSpriteFactory(SF aSpriteFactory)
With sprite factory.- Specified by:
withSpriteFactory
in interfaceSpriteFactoryAccessor.SpriteFactoryBuilder<P extends Player<P,S>,S>
- Parameters:
aSpriteFactory
- the sprite factory- Returns:
- the cbv
-
withBackgroundFactory
public CBV withBackgroundFactory(BF aBackgroundFactory)
With background factory.- Specified by:
withBackgroundFactory
in interfaceBackgroundFactoryAccessor.BackgroundFactoryBuilder<P extends Player<P,S>,S>
- Parameters:
aBackgroundFactory
- the background factory- Returns:
- the cbv
-
setBackgroundFactory
public void setBackgroundFactory(BF aBackgroundFactory)
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
public BF 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)
-
getCheckerboard
protected Checkerboard<P,S> getCheckerboard()
Gets the checkerboard.- Overrides:
getCheckerboard
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 checkerboard
-
-