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 a Player
S - The type which's instances represent a Player state.
IMG - the generic type
SF - the generic type
BF - the generic type
CBV - The CheckerboardViewer'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.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.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

    Constructors
    Constructor
    Description
    Constructs the GraphicalCheckerboardViewer for the given Checkerboard.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves 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
    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
    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.
    With hide.
    With initialize.
    withMoveMode(org.refcodes.graphical.MoveMode aMode)
    With move mode.
    withScaleMode(org.refcodes.graphical.ScaleMode aMode)
    With scale mode.
    With show.
    withSpriteFactory(SF aSpriteFactory)
    With sprite factory.
    withVisible(boolean isVisible)
    With visible.

    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.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

  • Method Details

    • getFieldGap

      public int getFieldGap()
      Specified by:
      getFieldGap in interface org.refcodes.graphical.FieldGapAccessor
    • setFieldGap

      public void setFieldGap(int aFieldGap)
      Specified by:
      setFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutator
    • withFieldGap

      public CBV withFieldGap(int aFieldGap)
      With field gap.
      Specified by:
      withFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<P extends Player<P,S>>
      Parameters:
      aFieldGap - the field gap
      Returns:
      the cbv
    • show

      public void show()
      Specified by:
      show in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
    • hide

      public void hide()
      Specified by:
      hide in interface org.refcodes.graphical.VisibleAccessor.VisibleMutator
    • getMoveMode

      public org.refcodes.graphical.MoveMode getMoveMode()
      Specified by:
      getMoveMode in interface org.refcodes.graphical.MoveModeAccessor
    • setMoveMode

      public void setMoveMode(org.refcodes.graphical.MoveMode aMode)
      Specified by:
      setMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutator
    • getScaleMode

      public org.refcodes.graphical.ScaleMode getScaleMode()
      Specified by:
      getScaleMode in interface org.refcodes.graphical.ScaleModeAccessor
    • setScaleMode

      public void setScaleMode(org.refcodes.graphical.ScaleMode aMode)
      Specified by:
      setScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator
    • getFieldHeight

      public int getFieldHeight()
      Specified by:
      getFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor
    • setFieldDimension

      public void setFieldDimension(int aFieldWidth, int aFieldHeight)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldDimension

      public void setFieldDimension(org.refcodes.graphical.FieldDimension aField)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldDimension

      public void setFieldDimension(org.refcodes.graphical.Dimension aDimension)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • setFieldWidth

      public void setFieldWidth(int aWidth)
      Specified by:
      setFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator
    • getFieldWidth

      public int getFieldWidth()
      Specified by:
      getFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor
    • setFieldHeight

      public void setFieldHeight(int aHeight)
      Specified by:
      setFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator
    • getContainerHeight

      public int getContainerHeight()
      Specified by:
      getContainerHeight in interface org.refcodes.graphical.ContainerHeightAccessor
    • getContainerWidth

      public int getContainerWidth()
      Specified by:
      getContainerWidth in interface org.refcodes.graphical.ContainerWidthAccessor
    • withFieldWidth

      public CBV withFieldWidth(int aWidth)
      With field width.
      Specified by:
      withFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<P extends Player<P,S>>
      Parameters:
      aWidth - the width
      Returns:
      the cbv
    • withFieldHeight

      public CBV withFieldHeight(int aHeight)
      With field height.
      Specified by:
      withFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<P extends Player<P,S>>
      Parameters:
      aHeight - the height
      Returns:
      the cbv
    • withFieldDimension

      public CBV withFieldDimension(org.refcodes.graphical.FieldDimension aField)
      With field dimension.
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends Player<P,S>>
      Parameters:
      aField - the field
      Returns:
      the cbv
    • withFieldDimension

      public CBV withFieldDimension(org.refcodes.graphical.Dimension aDimension)
      With field dimension.
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends Player<P,S>>
      Parameters:
      aDimension - the dimension
      Returns:
      the cbv
    • withInitialize

      public CBV withInitialize() throws org.refcodes.component.InitializeException
      With initialize.
      Specified by:
      withInitialize in interface org.refcodes.component.Initializable.InitializeBuilder<P extends Player<P,S>>
      Overrides:
      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>>
      Returns:
      the cbv
      Throws:
      org.refcodes.component.InitializeException - the initialize exception
    • withShow

      public CBV withShow()
      With show.
      Specified by:
      withShow in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends Player<P,S>>
      Returns:
      the cbv
    • withHide

      public CBV withHide()
      With hide.
      Specified by:
      withHide in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends Player<P,S>>
      Returns:
      the cbv
    • withVisible

      public CBV withVisible(boolean isVisible)
      With visible.
      Specified by:
      withVisible in interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder<P extends Player<P,S>>
      Parameters:
      isVisible - the is visible
      Returns:
      the cbv
    • withMoveMode

      public CBV withMoveMode(org.refcodes.graphical.MoveMode aMode)
      With move mode.
      Specified by:
      withMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<P extends Player<P,S>>
      Parameters:
      aMode - the mode
      Returns:
      the cbv
    • withScaleMode

      public CBV withScaleMode(org.refcodes.graphical.ScaleMode aMode)
      With scale mode.
      Specified by:
      withScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<P extends Player<P,S>>
      Parameters:
      aMode - the mode
      Returns:
      the cbv
    • toTotalWidth

      public int toTotalWidth()
      Specified by:
      toTotalWidth in interface org.refcodes.graphical.ContainerMetrics
    • setFieldDimension

      public void setFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
      Specified by:
      setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutator
    • withFieldDimension

      public CBV withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
      With field dimension.
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends Player<P,S>>
      Parameters:
      aFieldWidth - the field width
      aFieldHeight - the field height
      aGap - the gap
      Returns:
      the cbv
    • toTotalHeight

      public int toTotalHeight()
      Specified by:
      toTotalHeight in interface org.refcodes.graphical.ContainerMetrics
    • withFieldDimension

      public CBV withFieldDimension(int aFieldWidth, int aFieldHeight)
      With field dimension.
      Specified by:
      withFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionBuilder<P extends Player<P,S>>
      Parameters:
      aFieldWidth - the field width
      aFieldHeight - the field height
      Returns:
      the cbv
    • setSpriteFactory

      public void setSpriteFactory(SF aSpriteFactory)
      Sets the sprite factory for the sprite factory property.
      Specified by:
      setSpriteFactory in interface SpriteFactoryAccessor.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 interface SpriteFactoryAccessor<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 interface SpriteFactoryAccessor.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 interface BackgroundFactoryAccessor.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 interface BackgroundFactoryAccessor.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 interface BackgroundFactoryAccessor<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)
      Specified by:
      onUnsubscribe in interface org.refcodes.observer.ObservableObserver<P extends Player<P,S>>
      Overrides:
      onUnsubscribe in class AbstractCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>>