Package org.refcodes.graphical
Class GridDimensionImpl.GridDimensionPropertyBuilderImpl
- java.lang.Object
-
- org.refcodes.graphical.GridDimensionImpl
-
- org.refcodes.graphical.GridDimensionImpl.GridDimensionPropertyBuilderImpl
-
- All Implemented Interfaces:
GridDimension
,GridDimension.GridDimensionBuilder<GridDimension.GridDimensionPropertyBuilder>
,GridDimension.GridDimensionMutator
,GridDimension.GridDimensionProperty
,GridDimension.GridDimensionPropertyBuilder
,GridHeightAccessor
,GridHeightAccessor.GridHeightBuilder<GridDimension.GridDimensionPropertyBuilder>
,GridHeightAccessor.GridHeightMutator
,GridHeightAccessor.GridHeightProperty
,GridWidthAccessor
,GridWidthAccessor.GridWidthBuilder<GridDimension.GridDimensionPropertyBuilder>
,GridWidthAccessor.GridWidthMutator
,GridWidthAccessor.GridWidthProperty
- Enclosing class:
- GridDimensionImpl
public static class GridDimensionImpl.GridDimensionPropertyBuilderImpl extends GridDimensionImpl implements GridDimension.GridDimensionPropertyBuilder
The Class GridDimensionPropertyBuilderImpl.
-
-
Nested Class Summary
-
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 class org.refcodes.graphical.GridDimensionImpl
GridDimensionImpl.GridDimensionPropertyBuilderImpl
-
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
-
-
Field Summary
-
Fields inherited from class org.refcodes.graphical.GridDimensionImpl
_height, _width
-
-
Constructor Summary
Constructors Constructor Description GridDimensionPropertyBuilderImpl()
Instantiates a new grid dimension property builder impl.GridDimensionPropertyBuilderImpl(int aWidth, int aHeight)
Instantiates a new grid dimension property builder impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setGridDimension(int aWidth, int aHeight)
Sets the grid dimension.void
setGridDimension(Dimension aDimension)
Sets the grid dimension.void
setGridDimension(GridDimension aDimension)
Sets the grid dimension.void
setGridHeight(int aHeight)
Sets the grid height for the grid height property.void
setGridWidth(int aWidth)
Sets the grid width for the grid width property.GridDimensionImpl.GridDimensionPropertyBuilderImpl
withGridDimension(int aWidth, int aHeight)
With grid dimension.GridDimensionImpl.GridDimensionPropertyBuilderImpl
withGridDimension(Dimension aDimension)
With grid dimension.GridDimensionImpl.GridDimensionPropertyBuilderImpl
withGridDimension(GridDimension aDimension)
With grid dimension.GridDimensionImpl.GridDimensionPropertyBuilderImpl
withGridHeight(int aHeight)
Sets the grid height for the grid height property.GridDimensionImpl.GridDimensionPropertyBuilderImpl
withGridWidth(int aWidth)
Sets the grid width for the grid width property.-
Methods inherited from interface org.refcodes.graphical.GridDimension
equals, isInBounds, isInBounds, isInHeight, isInWidth
-
Methods inherited from class org.refcodes.graphical.GridDimensionImpl
getGridHeight, getGridWidth, toString
-
Methods inherited from interface org.refcodes.graphical.GridHeightAccessor
getGridHeight
-
Methods inherited from interface org.refcodes.graphical.GridWidthAccessor
getGridWidth
-
-
-
-
Constructor Detail
-
GridDimensionPropertyBuilderImpl
public GridDimensionPropertyBuilderImpl()
Instantiates a new grid dimension property builder impl.
-
GridDimensionPropertyBuilderImpl
public GridDimensionPropertyBuilderImpl(int aWidth, int aHeight)
Instantiates a new grid dimension property builder impl.- Parameters:
aWidth
- the widthaHeight
- the height
-
-
Method Detail
-
setGridWidth
public void setGridWidth(int aWidth)
Sets the grid width for the grid width property.- Specified by:
setGridWidth
in interfaceGridWidthAccessor.GridWidthMutator
- Parameters:
aWidth
- The grid width to be stored by the grid width property.
-
withGridWidth
public GridDimensionImpl.GridDimensionPropertyBuilderImpl withGridWidth(int aWidth)
Sets the grid width for the grid width property.- Specified by:
withGridWidth
in interfaceGridWidthAccessor.GridWidthBuilder<GridDimension.GridDimensionPropertyBuilder>
- Parameters:
aWidth
- The grid width to be stored by the grid width property.- Returns:
- The builder for applying multiple build operations.
-
setGridHeight
public void setGridHeight(int aHeight)
Sets the grid height for the grid height property.- Specified by:
setGridHeight
in interfaceGridHeightAccessor.GridHeightMutator
- Parameters:
aHeight
- The grid height to be stored by the grid height property.
-
withGridHeight
public GridDimensionImpl.GridDimensionPropertyBuilderImpl withGridHeight(int aHeight)
Sets the grid height for the grid height property.- Specified by:
withGridHeight
in interfaceGridHeightAccessor.GridHeightBuilder<GridDimension.GridDimensionPropertyBuilder>
- Parameters:
aHeight
- The grid height to be stored by the grid height property.- Returns:
- The builder for applying multiple build operations.
-
withGridDimension
public GridDimensionImpl.GridDimensionPropertyBuilderImpl withGridDimension(int aWidth, int aHeight)
With grid dimension.- Specified by:
withGridDimension
in interfaceGridDimension.GridDimensionBuilder<GridDimension.GridDimensionPropertyBuilder>
- Parameters:
aWidth
- the grid widthaHeight
- the grid height- Returns:
- the b
-
withGridDimension
public GridDimensionImpl.GridDimensionPropertyBuilderImpl withGridDimension(GridDimension aDimension)
With grid dimension.- Specified by:
withGridDimension
in interfaceGridDimension.GridDimensionBuilder<GridDimension.GridDimensionPropertyBuilder>
- Parameters:
aDimension
- the dimension- Returns:
- the b
-
setGridDimension
public void setGridDimension(int aWidth, int aHeight)
Sets the grid dimension.- Specified by:
setGridDimension
in interfaceGridDimension.GridDimensionMutator
- Parameters:
aWidth
- the widthaHeight
- the height
-
setGridDimension
public void setGridDimension(GridDimension aDimension)
Sets the grid dimension.- Specified by:
setGridDimension
in interfaceGridDimension.GridDimensionMutator
- Parameters:
aDimension
- the new grid dimension
-
withGridDimension
public GridDimensionImpl.GridDimensionPropertyBuilderImpl withGridDimension(Dimension aDimension)
With grid dimension.- Specified by:
withGridDimension
in interfaceGridDimension.GridDimensionBuilder<GridDimension.GridDimensionPropertyBuilder>
- Parameters:
aDimension
- the dimension- Returns:
- the b
-
setGridDimension
public void setGridDimension(Dimension aDimension)
Sets the grid dimension.- Specified by:
setGridDimension
in interfaceGridDimension.GridDimensionMutator
- Parameters:
aDimension
- the new grid dimension
-
-