- java.lang.Object
-
- org.refcodes.graphical.ViewportDimensionImpl
-
- All Implemented Interfaces:
ViewportDimension
,ViewportHeightAccessor
,ViewportWidthAccessor
- Direct Known Subclasses:
ViewportDimensionPropertyBuilder
public class ViewportDimensionImpl extends Object implements ViewportDimension
The Class ViewportDimensionImpl.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportDimension
ViewportDimension.ViewportDimensionBuilder<B extends ViewportDimension.ViewportDimensionBuilder<B>>, ViewportDimension.ViewportDimensionMutator, ViewportDimension.ViewportDimensionProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportHeightAccessor
ViewportHeightAccessor.ViewportHeightBuilder<B extends ViewportHeightAccessor.ViewportHeightBuilder<B>>, ViewportHeightAccessor.ViewportHeightMutator, ViewportHeightAccessor.ViewportHeightProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.ViewportWidthAccessor
ViewportWidthAccessor.ViewportWidthBuilder<B extends ViewportWidthAccessor.ViewportWidthBuilder<B>>, ViewportWidthAccessor.ViewportWidthMutator, ViewportWidthAccessor.ViewportWidthProperty
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewportDimensionImpl()
Instantiates a new viewport dimension impl.ViewportDimensionImpl(int aWidth, int aHeight)
Instantiates a new viewport dimension impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getViewportHeight()
Retrieves the viewport height from the viewport height property.int
getViewportWidth()
Retrieves the viewport width from the viewport width property.String
toString()
-
-
-
Method Detail
-
getViewportWidth
public int getViewportWidth()
Retrieves the viewport width from the viewport width property.- Specified by:
getViewportWidth
in interfaceViewportWidthAccessor
- Returns:
- The viewport width stored by the viewport width property.
-
getViewportHeight
public int getViewportHeight()
Retrieves the viewport height from the viewport height property.- Specified by:
getViewportHeight
in interfaceViewportHeightAccessor
- Returns:
- The viewport height stored by the viewport height property.
-
-