Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Class ViewportDimensionChangedEventImpl<P extends Player<P,S>,S>
- java.lang.Object
-
- org.refcodes.checkerboard.AbstractCheckerboardViewerEvent<P,S>
-
- org.refcodes.checkerboard.ViewportDimensionChangedEventImpl<P,S>
-
- Type Parameters:
P
- the generic typeS
- the generic type
- All Implemented Interfaces:
CheckerboardViewerEvent<P,S>
,ViewportDimensionChangedEvent<P,S>
,org.refcodes.graphical.ViewportDimension
,org.refcodes.graphical.ViewportHeightAccessor
,org.refcodes.graphical.ViewportWidthAccessor
,org.refcodes.mixin.ActionAccessor<CheckerboardViewerAction>
,org.refcodes.mixin.SourceAccessor<CheckerboardViewer<P,S,?>>
,org.refcodes.observer.GenericActionEvent<CheckerboardViewerAction,CheckerboardViewer<P,S,?>>
,org.refcodes.observer.GenericEvent<CheckerboardViewer<P,S,?>>
public class ViewportDimensionChangedEventImpl<P extends Player<P,S>,S> extends AbstractCheckerboardViewerEvent<P,S> implements ViewportDimensionChangedEvent<P,S>
The Class ViewportDimensionChangedEventImpl.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
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>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
-
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
-
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.ViewportWidthAccessor
org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
-
-
Field Summary
-
Fields inherited from interface org.refcodes.checkerboard.ViewportDimensionChangedEvent
ACTION
-
-
Constructor Summary
Constructors Constructor Description ViewportDimensionChangedEventImpl(int aWidth, int aHeight, int aPrecedingWidth, int aPrecedingHeigt, int aOffsetX, int aOffsetY, CheckerboardViewer<P,S,?> aSource)
Instantiates a new viewport dimension changed event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.graphical.ViewportDimension
getPrecedingViewportDimension()
Gets the preceding viewport dimension.int
getViewportHeight()
org.refcodes.graphical.ViewportOffset
getViewportOffset()
Gets the viewport offset.int
getViewportWidth()
String
toString()
-
Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
getAction, getSource
-
-
-
-
Constructor Detail
-
ViewportDimensionChangedEventImpl
public ViewportDimensionChangedEventImpl(int aWidth, int aHeight, int aPrecedingWidth, int aPrecedingHeigt, int aOffsetX, int aOffsetY, CheckerboardViewer<P,S,?> aSource)
Instantiates a new viewport dimension changed event.- Parameters:
aWidth
- the widthaHeight
- the heightaPrecedingWidth
- the preceding widthaPrecedingHeigt
- the preceding heigtaOffsetX
- the offset XaOffsetY
- the offset YaSource
- The according source (origin).
-
-
Method Detail
-
getViewportHeight
public int getViewportHeight()
- Specified by:
getViewportHeight
in interfaceorg.refcodes.graphical.ViewportHeightAccessor
-
getViewportWidth
public int getViewportWidth()
- Specified by:
getViewportWidth
in interfaceorg.refcodes.graphical.ViewportWidthAccessor
-
getPrecedingViewportDimension
public org.refcodes.graphical.ViewportDimension getPrecedingViewportDimension()
Gets the preceding viewport dimension.- Specified by:
getPrecedingViewportDimension
in interfaceViewportDimensionChangedEvent<P extends Player<P,S>,S>
- Returns:
- the preceding viewport dimension
-
getViewportOffset
public org.refcodes.graphical.ViewportOffset getViewportOffset()
Gets the viewport offset.- Specified by:
getViewportOffset
in interfaceViewportDimensionChangedEvent<P extends Player<P,S>,S>
- Returns:
- the viewport offset
-
-