Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Class ViewportDimensionChangedEvent<P extends Player<P,S>,S>
java.lang.Object
org.refcodes.checkerboard.AbstractCheckerboardViewerEvent<P,S>
org.refcodes.checkerboard.ViewportDimensionChangedEvent<P,S>
- Type Parameters:
P
- the generic typeS
- the generic type
- All Implemented Interfaces:
CheckerboardViewerEvent<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.ActionEvent<CheckerboardViewerAction,
,CheckerboardViewer<P, S, ?>> org.refcodes.observer.Event<CheckerboardViewer<P,
S, ?>>
public class ViewportDimensionChangedEvent<P extends Player<P,S>,S>
extends AbstractCheckerboardViewerEvent<P,S>
implements org.refcodes.graphical.ViewportDimension
The Class ViewportDimensionChangedEvent.
-
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.SourceBuilder<SRC extends Object,
B extends org.refcodes.mixin.SourceAccessor.SourceBuilder<SRC, B>>, 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.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.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
-
Constructor Summary
ConstructorDescriptionViewportDimensionChangedEvent
(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
Modifier and TypeMethodDescriptionorg.refcodes.graphical.ViewportDimension
Gets the preceding viewport dimension.int
org.refcodes.graphical.ViewportOffset
Gets the viewport offset.int
toString()
Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
getAction, getSource
-
Field Details
-
ACTION
-
-
Constructor Details
-
ViewportDimensionChangedEvent
public ViewportDimensionChangedEvent(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 Details
-
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.- Returns:
- the preceding viewport dimension
-
getViewportOffset
public org.refcodes.graphical.ViewportOffset getViewportOffset()Gets the viewport offset.- Returns:
- the viewport offset
-
toString
-