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 type
S - 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

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ViewportDimensionChangedEvent(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 Type
    Method
    Description
    org.refcodes.graphical.ViewportDimension
    Gets the preceding viewport dimension.
    int
    org.refcodes.graphical.ViewportOffset
    Gets the viewport offset.
    int

    Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent

    getAction, getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 width
      aHeight - the height
      aPrecedingWidth - the preceding width
      aPrecedingHeigt - the preceding heigt
      aOffsetX - the offset X
      aOffsetY - the offset Y
      aSource - The according source (origin).
  • Method Details

    • getViewportHeight

      public int getViewportHeight()
      Specified by:
      getViewportHeight in interface org.refcodes.graphical.ViewportHeightAccessor
    • getViewportWidth

      public int getViewportWidth()
      Specified by:
      getViewportWidth in interface org.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

      public String toString()
      Overrides:
      toString in class AbstractCheckerboardViewerEvent<P extends Player<P,S>,S>