java.lang.Object
org.refcodes.graphical.RasterImpl
- All Implemented Interfaces:
FieldDimension
,FieldGapAccessor
,FieldHeightAccessor
,FieldWidthAccessor
,GridDimension
,GridHeightAccessor
,GridModeAccessor
,GridWidthAccessor
,Raster
- Direct Known Subclasses:
RasterPropertyBuilder
The Class RasterImpl.
- Author:
- steiner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.graphical.FieldDimension
FieldDimension.FieldDimensionAccessor, FieldDimension.FieldDimensionBuilder<B extends FieldDimension.FieldDimensionBuilder<B>>, FieldDimension.FieldDimensionMutator, FieldDimension.FieldDimensionProperty
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.GridDimensionAccessor, GridDimension.GridDimensionBuilder<B extends GridDimension.GridDimensionBuilder<B>>, GridDimension.GridDimensionMutator, GridDimension.GridDimensionProperty
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.RasterAccessor, Raster.RasterBuilder<B extends Raster.RasterBuilder<B>>, Raster.RasterMutator, Raster.RasterProperty
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
protected GridMode
protected int
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionint
Retrieves the field gap from the field gap property.int
Retrieves the field height from the field height property.int
Retrieves the field width from the field width property.int
Retrieves the grid height from the grid height property.Retrieves the grid mode from the grid mode property.int
Retrieves the grid width from the grid width property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.graphical.GridDimension
isInBounds, isInBounds, isInHeight, isInWidth
-
Field Details
-
_gridWidth
protected int _gridWidth -
_gridHeight
protected int _gridHeight -
_fieldHeight
protected int _fieldHeight -
_fieldWidth
protected int _fieldWidth -
_fieldGap
protected int _fieldGap -
_gridMode
-
-
Constructor Details
-
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 Details
-
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
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.
-