Package org.refcodes.graphical
Class RasterImpl
- java.lang.Object
-
- org.refcodes.graphical.RasterImpl
-
- All Implemented Interfaces:
FieldDimension
,FieldGapAccessor
,FieldHeightAccessor
,FieldWidthAccessor
,GridDimension
,GridHeightAccessor
,GridModeAccessor
,GridWidthAccessor
,Raster
- Direct Known Subclasses:
RasterImpl.RasterPropertyBuilderImpl
public class RasterImpl extends java.lang.Object implements Raster
The Class RasterImpl.- Author:
- steiner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RasterImpl.RasterPropertyBuilderImpl
The Class RasterPropertyBuilderImpl.-
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldDimension
FieldDimension.FieldDimensionBuilder<B extends FieldDimension.FieldDimensionBuilder<B>>, FieldDimension.FieldDimensionMutator, FieldDimension.FieldDimensionProperty, FieldDimension.FieldDimensionPropertyBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldGapAccessor
FieldGapAccessor.FieldGapBuilder<B extends FieldGapAccessor.FieldGapBuilder<B>>, FieldGapAccessor.FieldGapMutator, FieldGapAccessor.FieldGapProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldHeightAccessor
FieldHeightAccessor.FieldHeightBuilder<B extends FieldHeightAccessor.FieldHeightBuilder<B>>, FieldHeightAccessor.FieldHeightMutator, FieldHeightAccessor.FieldHeightProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldWidthAccessor
FieldWidthAccessor.FieldWidthBuilder<B extends FieldWidthAccessor.FieldWidthBuilder<B>>, FieldWidthAccessor.FieldWidthMutator, FieldWidthAccessor.FieldWidthProperty
-
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.GridModeAccessor
GridModeAccessor.GridModeBuilder<B extends GridModeAccessor.GridModeBuilder<B>>, GridModeAccessor.GridModeMutator, GridModeAccessor.GridModeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.GridWidthAccessor
GridWidthAccessor.GridWidthBuilder<B extends GridWidthAccessor.GridWidthBuilder<B>>, GridWidthAccessor.GridWidthMutator, GridWidthAccessor.GridWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.Raster
Raster.RasterBuilder<B extends Raster.RasterBuilder<B>>, Raster.RasterMutator, Raster.RasterProperty, Raster.RasterPropertyBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_fieldGap
protected int
_fieldHeight
protected int
_fieldWidth
protected int
_gridHeight
protected GridMode
_gridMode
protected int
_gridWidth
-
Constructor Summary
Constructors Modifier Constructor Description protected
RasterImpl()
Instantiates a new raster impl.RasterImpl(int aGridWidth, int aGridHeight, int aWidth, int aHeight, int aGap, GridMode aGridMode)
Instantiates a new raster impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFieldGap()
Retrieves the field gap from the field gap property.int
getFieldHeight()
Retrieves the field height from the field height property.int
getFieldWidth()
Retrieves the field width from the field width property.int
getGridHeight()
Retrieves the grid height from the grid height property.GridMode
getGridMode()
Retrieves the grid mode from the grid mode property.int
getGridWidth()
Retrieves the grid width from the grid width property.-
Methods inherited from interface org.refcodes.graphical.FieldDimension
-
Methods inherited from interface org.refcodes.graphical.GridDimension
isInBounds, isInBounds, isInHeight, isInWidth
-
-
-
-
Field Detail
-
_gridWidth
protected int _gridWidth
-
_gridHeight
protected int _gridHeight
-
_fieldHeight
protected int _fieldHeight
-
_fieldWidth
protected int _fieldWidth
-
_fieldGap
protected int _fieldGap
-
_gridMode
protected GridMode _gridMode
-
-
Constructor Detail
-
RasterImpl
protected RasterImpl()
Instantiates a new raster impl.
-
RasterImpl
public RasterImpl(int aGridWidth, int aGridHeight, int aWidth, int aHeight, int aGap, GridMode aGridMode)
Instantiates a new raster impl.- Parameters:
aGridWidth
- the grid widthaGridHeight
- the grid heightaWidth
- the widthaHeight
- the heightaGap
- the gapaGridMode
- the grid mode
-
-
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.
-
getGridMode
public GridMode getGridMode()
Retrieves the grid mode from the grid mode property.- Specified by:
getGridMode
in interfaceGridModeAccessor
- Returns:
- The grid mode stored by the grid mode property.
-
getFieldGap
public int getFieldGap()
Retrieves the field gap from the field gap property.- Specified by:
getFieldGap
in interfaceFieldGapAccessor
- Returns:
- The field gap stored by the field gap property.
-
getFieldWidth
public int getFieldWidth()
Retrieves the field width from the field width property.- Specified by:
getFieldWidth
in interfaceFieldWidthAccessor
- Returns:
- The field width stored by the field width property.
-
getFieldHeight
public int getFieldHeight()
Retrieves the field height from the field height property.- Specified by:
getFieldHeight
in interfaceFieldHeightAccessor
- Returns:
- The field height stored by the field height 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.
-
-