P
- the generic typeS
- the generic typeCheckerboardViewerEvent<P,S>
, ViewportDimensionChangedEvent<P,S>
, org.refcodes.graphical.ViewportDimension
, org.refcodes.graphical.ViewportHeightAccessor
, org.refcodes.graphical.ViewportWidthAccessor
, org.refcodes.mixin.ActionAccessor<P>
, org.refcodes.mixin.SourceAccessor<P>
, org.refcodes.observer.GenericActionEvent<P,S>
, org.refcodes.observer.GenericEvent<P>
public class ViewportDimensionChangedEventImpl<P extends Player<P,S>,S> extends AbstractCheckerboardViewerEvent<P,S> implements ViewportDimensionChangedEvent<P,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.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
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.ViewportHeightAccessor.ViewportHeightBuilder<B extends org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightBuilder<B>>, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightMutator, org.refcodes.graphical.ViewportHeightAccessor.ViewportHeightProperty
org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B extends org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthBuilder<B>>, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthMutator, org.refcodes.graphical.ViewportWidthAccessor.ViewportWidthProperty
ACTION
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.
|
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() |
getAction, getSource
public ViewportDimensionChangedEventImpl(int aWidth, int aHeight, int aPrecedingWidth, int aPrecedingHeigt, int aOffsetX, int aOffsetY, CheckerboardViewer<P,S,?> aSource)
aWidth
- the widthaHeight
- the heightaPrecedingWidth
- the preceding widthaPrecedingHeigt
- the preceding heigtaOffsetX
- the offset XaOffsetY
- the offset YaSource
- The according source (origin).public int getViewportHeight()
getViewportHeight
in interface org.refcodes.graphical.ViewportHeightAccessor
public int getViewportWidth()
getViewportWidth
in interface org.refcodes.graphical.ViewportWidthAccessor
public org.refcodes.graphical.ViewportDimension getPrecedingViewportDimension()
getPrecedingViewportDimension
in interface ViewportDimensionChangedEvent<P extends Player<P,S>,S>
public org.refcodes.graphical.ViewportOffset getViewportOffset()
getViewportOffset
in interface ViewportDimensionChangedEvent<P extends Player<P,S>,S>
Copyright © 2021. All rights reserved.