Package org.refcodes.checkerboard
Class GridDimensionChangedEventImpl<P extends Player<P,S>,S>
- java.lang.Object
-
- org.refcodes.checkerboard.AbstractCheckerboardEvent<P,S>
-
- org.refcodes.checkerboard.GridDimensionChangedEventImpl<P,S>
-
- Type Parameters:
P
- the generic typeS
- the generic type
- All Implemented Interfaces:
CheckerboardEvent<P,S>
,GridDimensionChangedEvent<P,S>
,org.refcodes.graphical.GridDimension
,org.refcodes.graphical.GridHeightAccessor
,org.refcodes.graphical.GridWidthAccessor
,org.refcodes.mixin.ActionAccessor<P>
,org.refcodes.mixin.SourceAccessor<P>
,org.refcodes.observer.GenericActionEvent<P,S>
,org.refcodes.observer.GenericEvent<P>
public class GridDimensionChangedEventImpl<P extends Player<P,S>,S> extends AbstractCheckerboardEvent<P,S> implements GridDimensionChangedEvent<P,S>
The Class GridDimensionChangedEventImpl.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.refcodes.checkerboard.AbstractCheckerboardEvent
AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent<P extends Player<P,S>,S>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
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.GridWidthAccessor
org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty
-
-
Field Summary
-
Fields inherited from interface org.refcodes.checkerboard.GridDimensionChangedEvent
ACTION
-
-
Constructor Summary
Constructors Constructor Description GridDimensionChangedEventImpl(int aWidth, int aHeight, int aPrecedingWidth, int aPrecedingHeigt, Checkerboard<P,S> aSource)
Instantiates a new grid dimension changed event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGridHeight()
int
getGridWidth()
org.refcodes.graphical.GridDimension
getPrecedingGridDimension()
Gets the preceding grid dimension.java.lang.String
toString()
-
Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardEvent
getAction, getSource
-
Methods inherited from interface org.refcodes.graphical.GridDimension
equals, isInBounds, isInBounds, isInHeight, isInWidth
-
-
-
-
Constructor Detail
-
GridDimensionChangedEventImpl
public GridDimensionChangedEventImpl(int aWidth, int aHeight, int aPrecedingWidth, int aPrecedingHeigt, Checkerboard<P,S> aSource)
Instantiates a new grid dimension changed event.- Parameters:
aWidth
- the widthaHeight
- the heightaPrecedingWidth
- the preceding widthaPrecedingHeigt
- the preceding heigtaSource
- The according source (origin).
-
-
Method Detail
-
getGridHeight
public int getGridHeight()
- Specified by:
getGridHeight
in interfaceorg.refcodes.graphical.GridHeightAccessor
-
getGridWidth
public int getGridWidth()
- Specified by:
getGridWidth
in interfaceorg.refcodes.graphical.GridWidthAccessor
-
getPrecedingGridDimension
public org.refcodes.graphical.GridDimension getPrecedingGridDimension()
Gets the preceding grid dimension.- Specified by:
getPrecedingGridDimension
in interfaceGridDimensionChangedEvent<P extends Player<P,S>,S>
- Returns:
- the preceding grid dimension
-
-