public abstract class AbstractGraphicalCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,BF extends BackgroundFactory<IMG,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>> extends AbstractCheckerboardViewer<S,IMG,SF,CBV> implements GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>
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.ViewportDimensionPropertyBuilderBuilderorg.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthPropertyorg.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B extends org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightPropertyorg.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.MinViewportDimensionPropertyBuilderBuilderorg.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.ViewportOffsetPropertyBuilderorg.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B extends org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXBuilder<B>>, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXMutator, org.refcodes.graphical.ViewportOffsetXAccessor.ViewportOffsetXPropertyorg.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B extends org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYBuilder<B>>, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYMutator, org.refcodes.graphical.ViewportOffsetYAccessor.ViewportOffsetYPropertyorg.refcodes.component.Destroyable.DestroyAutomatonorg.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializableSpriteFactoryAccessor.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<?,?,?>>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<?,?>>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.ContainerDimensionPropertyBuilderorg.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B extends org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightBuilder<B>>, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightMutator, org.refcodes.graphical.ContainerHeightAccessor.ContainerHeightPropertyorg.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B extends org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthBuilder<B>>, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthMutator, org.refcodes.graphical.ContainerWidthAccessor.ContainerWidthPropertyorg.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.RasterPropertyBuilderorg.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.FieldDimensionPropertyBuilderorg.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B extends org.refcodes.graphical.FieldHeightAccessor.FieldHeightBuilder<B>>, org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutator, org.refcodes.graphical.FieldHeightAccessor.FieldHeightPropertyorg.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B extends org.refcodes.graphical.FieldWidthAccessor.FieldWidthBuilder<B>>, org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutator, org.refcodes.graphical.FieldWidthAccessor.FieldWidthPropertyorg.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B extends org.refcodes.graphical.FieldGapAccessor.FieldGapBuilder<B>>, org.refcodes.graphical.FieldGapAccessor.FieldGapMutator, org.refcodes.graphical.FieldGapAccessor.FieldGapPropertyorg.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.GridDimensionPropertyBuilderorg.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightPropertyorg.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthPropertyorg.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModePropertyorg.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisiblePropertyorg.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B extends org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<B>>, org.refcodes.graphical.MoveModeAccessor.MoveModeMutator, org.refcodes.graphical.MoveModeAccessor.MoveModePropertyorg.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B extends org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<B>>, org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutator, org.refcodes.graphical.ScaleModeAccessor.ScaleModeProperty| Constructor and Description |
|---|
AbstractGraphicalCheckerboardViewer() |
| Modifier and Type | Method and Description |
|---|---|
BF |
getBackgroundFactory()
Retrieves the background factory from the background factory property.
|
protected Checkerboard<S> |
getCheckerboard() |
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<S>> aUnsubscribeEvent) |
void |
setBackgroundFactory(BF aBackgroundFactory)
Sets the background factory for the background factory property.
|
void |
setFieldDimension(org.refcodes.graphical.Dimension aDimension) |
void |
setFieldDimension(org.refcodes.graphical.FieldDimension aField) |
void |
setFieldDimension(int aFieldWidth,
int aFieldHeight) |
void |
setFieldDimension(int aFieldWidth,
int aFieldHeight,
int aGap) |
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() |
GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV> |
withBackgroundFactory(BF aBackgroundFactory)
Sets the background factory for the background factory property.
|
CBV |
withFieldDimension(org.refcodes.graphical.Dimension aDimension) |
CBV |
withFieldDimension(org.refcodes.graphical.FieldDimension aField) |
CBV |
withFieldDimension(int aFieldWidth,
int aFieldHeight) |
CBV |
withFieldDimension(int aFieldWidth,
int aFieldHeight,
int aGap) |
CBV |
withFieldGap(int aFieldGap) |
CBV |
withFieldHeight(int aHeight) |
CBV |
withFieldWidth(int aWidth) |
CBV |
withHide() |
CBV |
withInitialize() |
CBV |
withMoveMode(org.refcodes.graphical.MoveMode aMode) |
CBV |
withScaleMode(org.refcodes.graphical.ScaleMode aMode) |
CBV |
withShow() |
CBV |
withSpriteFactory(SF aSpriteFactory)
Sets the sprite factory for the sprite factory property.
|
CBV |
withVisible(boolean isVisible) |
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, withViewportWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonChangePositionEvent, onCheckerboardEvent, onDraggabilityChangedEvent, onGridDimensionChangedEvent, onGridModeChangedEvent, onPlayerAddedEvent, onPlayerEvent, onPlayerRemovedEvent, onPositionChangedEvent, onStateChangedEvent, onViewportDimensionChangedEvent, onViewportOffsetChangedEvent, onVisibilityChangedEventsetViewportDimension, setViewportDimension, setViewportDimensionsetViewportWidthsetViewportHeightwithViewportDimension, withViewportDimension, withViewportDimensionwithViewportWidthwithViewportHeightgetMinViewportDimensionsetMinViewportDimension, setMinViewportDimensionwithMinViewportDimension, withMinViewportDimensionsetViewportOffset, setViewportOffset, setViewportOffset, setViewportOffsetsetViewportOffsetXsetViewportOffsetYwithViewportOffset, withViewportOffset, withViewportOffset, withViewportOffsetwithViewportOffsetXpublic int getFieldGap()
getFieldGap in interface org.refcodes.graphical.FieldGapAccessorpublic void setFieldGap(int aFieldGap)
setFieldGap in interface org.refcodes.graphical.FieldGapAccessor.FieldGapMutatorpublic CBV withFieldGap(int aFieldGap)
public void show()
show in interface org.refcodes.graphical.VisibleAccessor.VisibleMutatorpublic void hide()
hide in interface org.refcodes.graphical.VisibleAccessor.VisibleMutatorpublic org.refcodes.graphical.MoveMode getMoveMode()
getMoveMode in interface org.refcodes.graphical.MoveModeAccessorpublic void setMoveMode(org.refcodes.graphical.MoveMode aMode)
setMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeMutatorpublic org.refcodes.graphical.ScaleMode getScaleMode()
getScaleMode in interface org.refcodes.graphical.ScaleModeAccessorpublic void setScaleMode(org.refcodes.graphical.ScaleMode aMode)
setScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeMutatorpublic int getFieldHeight()
getFieldHeight in interface org.refcodes.graphical.FieldHeightAccessorpublic void setFieldDimension(int aFieldWidth,
int aFieldHeight)
setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutatorpublic void setFieldDimension(org.refcodes.graphical.FieldDimension aField)
setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutatorpublic void setFieldDimension(org.refcodes.graphical.Dimension aDimension)
setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutatorpublic void setFieldWidth(int aWidth)
setFieldWidth in interface org.refcodes.graphical.FieldWidthAccessor.FieldWidthMutatorpublic int getFieldWidth()
getFieldWidth in interface org.refcodes.graphical.FieldWidthAccessorpublic void setFieldHeight(int aHeight)
setFieldHeight in interface org.refcodes.graphical.FieldHeightAccessor.FieldHeightMutatorpublic int getContainerHeight()
getContainerHeight in interface org.refcodes.graphical.ContainerHeightAccessorpublic int getContainerWidth()
getContainerWidth in interface org.refcodes.graphical.ContainerWidthAccessorpublic 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<CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>withInitialize in class AbstractCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>org.refcodes.component.InitializeExceptionpublic CBV withShow()
public CBV withHide()
public CBV withVisible(boolean isVisible)
public CBV withMoveMode(org.refcodes.graphical.MoveMode aMode)
withMoveMode in interface org.refcodes.graphical.MoveModeAccessor.MoveModeBuilder<GraphicalCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,BF extends BackgroundFactory<IMG,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>>public CBV withScaleMode(org.refcodes.graphical.ScaleMode aMode)
withScaleMode in interface org.refcodes.graphical.ScaleModeAccessor.ScaleModeBuilder<GraphicalCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,BF extends BackgroundFactory<IMG,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>>public int toTotalWidth()
toTotalWidth in interface org.refcodes.graphical.ContainerMetricspublic void setFieldDimension(int aFieldWidth,
int aFieldHeight,
int aGap)
setFieldDimension in interface org.refcodes.graphical.FieldDimension.FieldDimensionMutatorpublic CBV withFieldDimension(int aFieldWidth, int aFieldHeight, int aGap)
public int toTotalHeight()
toTotalHeight in interface org.refcodes.graphical.ContainerMetricspublic CBV withFieldDimension(int aFieldWidth, int aFieldHeight)
public void setSpriteFactory(SF aSpriteFactory)
SpriteFactoryAccessor.SpriteFactoryMutatorsetSpriteFactory in interface SpriteFactoryAccessor.SpriteFactoryMutator<SF extends SpriteFactory<IMG,S,? extends CBV>>aSpriteFactory - The sprite factory to be stored by the sprite
factory property.public SF getSpriteFactory()
SpriteFactoryAccessorgetSpriteFactory in interface SpriteFactoryAccessor<SF extends SpriteFactory<IMG,S,? extends CBV>>public CBV withSpriteFactory(SF aSpriteFactory)
SpriteFactoryAccessor.SpriteFactoryBuilderwithSpriteFactory in interface SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends SpriteFactory<IMG,S,? extends CBV>,GraphicalCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,BF extends BackgroundFactory<IMG,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>>aSpriteFactory - The sprite factory to be stored by the sprite
factory property.public GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV> withBackgroundFactory(BF aBackgroundFactory)
BackgroundFactoryAccessor.BackgroundFactoryBuilderwithBackgroundFactory in interface BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends BackgroundFactory<IMG,? extends CBV>,GraphicalCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,BF extends BackgroundFactory<IMG,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>>aBackgroundFactory - The background factory to be stored by the
background factory property.public void setBackgroundFactory(BF aBackgroundFactory)
BackgroundFactoryAccessor.BackgroundFactoryMutatorsetBackgroundFactory in interface BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends BackgroundFactory<IMG,? extends CBV>>aBackgroundFactory - The background factory to be stored by the
background factory property.public BF getBackgroundFactory()
BackgroundFactoryAccessorgetBackgroundFactory in interface BackgroundFactoryAccessor<BF extends BackgroundFactory<IMG,? extends CBV>>public void onUnsubscribe(org.refcodes.observer.UnsubscribeEvent<Checkerboard<S>> aUnsubscribeEvent)
onUnsubscribe in interface org.refcodes.observer.ObservableObserver<Checkerboard<S>>onUnsubscribe in class AbstractCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>protected Checkerboard<S> getCheckerboard()
getCheckerboard in class AbstractCheckerboardViewer<S,IMG,SF extends SpriteFactory<IMG,S,? extends CBV>,CBV extends GraphicalCheckerboardViewer<S,IMG,SF,BF,CBV>>Copyright © 2016. All rights reserved.