P - the generic typeS - the generic typeCheckerboardEvent<P,S>, GridDimensionChangedEvent<P,S>, org.refcodes.graphical.GridDimension, org.refcodes.graphical.GridHeightAccessor, org.refcodes.graphical.GridWidthAccessor, org.refcodes.mixin.ActionAccessor<CheckerboardAction>, org.refcodes.mixin.SourceAccessor<Checkerboard<P,S>>, org.refcodes.observer.GenericActionEvent<CheckerboardAction,Checkerboard<P,S>>, org.refcodes.observer.GenericEvent<Checkerboard<P,S>>public class GridDimensionChangedEventImpl<P extends Player<P,S>,S> extends AbstractCheckerboardEvent<P,S> implements GridDimensionChangedEvent<P,S>
AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent<P extends Player<P,S>,S>org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>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.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.GridWidthPropertyACTION| Constructor | Description |
|---|---|
GridDimensionChangedEventImpl(int aWidth,
int aHeight,
int aPrecedingWidth,
int aPrecedingHeigt,
Checkerboard<P,S> aSource) |
Instantiates a new grid dimension changed event.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getGridHeight() |
|
int |
getGridWidth() |
|
org.refcodes.graphical.GridDimension |
getPrecedingGridDimension() |
Gets the preceding grid dimension.
|
String |
toString() |
getAction, getSourceisInBounds, isInBounds, isInHeight, isInWidthpublic GridDimensionChangedEventImpl(int aWidth,
int aHeight,
int aPrecedingWidth,
int aPrecedingHeigt,
Checkerboard<P,S> aSource)
aWidth - the widthaHeight - the heightaPrecedingWidth - the preceding widthaPrecedingHeigt - the preceding heigtaSource - The according source (origin).public int getGridHeight()
getGridHeight in interface org.refcodes.graphical.GridHeightAccessorpublic int getGridWidth()
getGridWidth in interface org.refcodes.graphical.GridWidthAccessorpublic org.refcodes.graphical.GridDimension getPrecedingGridDimension()
getPrecedingGridDimension in interface GridDimensionChangedEvent<P extends Player<P,S>,S>Copyright © 2018. All rights reserved.