Package org.refcodes.graphical
Class GridDimensionImpl
- java.lang.Object
-
- org.refcodes.graphical.GridDimensionImpl
-
- All Implemented Interfaces:
GridDimension
,GridHeightAccessor
,GridWidthAccessor
- Direct Known Subclasses:
GridDimensionImpl.GridDimensionPropertyBuilderImpl
public class GridDimensionImpl extends java.lang.Object implements GridDimension
The Class GridDimensionImpl.- Author:
- steiner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridDimensionImpl.GridDimensionPropertyBuilderImpl
The Class GridDimensionPropertyBuilderImpl.-
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridDimension
GridDimension.GridDimensionBuilder<B extends GridDimension.GridDimensionBuilder<B>>, GridDimension.GridDimensionMutator, GridDimension.GridDimensionProperty, GridDimension.GridDimensionPropertyBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridHeightAccessor
GridHeightAccessor.GridHeightBuilder<B extends GridHeightAccessor.GridHeightBuilder<B>>, GridHeightAccessor.GridHeightMutator, GridHeightAccessor.GridHeightProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridWidthAccessor
GridWidthAccessor.GridWidthBuilder<B extends GridWidthAccessor.GridWidthBuilder<B>>, GridWidthAccessor.GridWidthMutator, GridWidthAccessor.GridWidthProperty
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GridDimensionImpl()
Instantiates a new grid dimension impl.GridDimensionImpl(int aWidth, int aHeight)
Instantiates a new grid dimension impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGridHeight()
Retrieves the grid height from the grid height property.int
getGridWidth()
Retrieves the grid width from the grid width property.java.lang.String
toString()
-
Methods inherited from interface org.refcodes.graphical.GridDimension
isInBounds, isInBounds, isInHeight, isInWidth
-
-
-
-
Method Detail
-
getGridWidth
public int getGridWidth()
Retrieves the grid width from the grid width property.- Specified by:
getGridWidth
in interfaceGridWidthAccessor
- Returns:
- The grid width stored by the grid width property.
-
getGridHeight
public int getGridHeight()
Retrieves the grid height from the grid height property.- Specified by:
getGridHeight
in interfaceGridHeightAccessor
- Returns:
- The grid height stored by the grid height property.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-