Class RasterImpl

java.lang.Object
org.refcodes.graphical.RasterImpl
All Implemented Interfaces:
FieldDimension, FieldGapAccessor, FieldHeightAccessor, FieldWidthAccessor, GridDimension, GridHeightAccessor, GridModeAccessor, GridWidthAccessor, Raster
Direct Known Subclasses:
RasterPropertyBuilder

public class RasterImpl extends Object implements Raster
The Class RasterImpl.
Author:
steiner
  • Field Details

    • _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 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 width
      aGridHeight - the grid height
      aWidth - the width
      aHeight - the height
      aGap - the gap
      aGridMode - the grid mode
  • Method Details

    • getGridWidth

      public int getGridWidth()
      Retrieves the grid width from the grid width property.
      Specified by:
      getGridWidth in interface GridWidthAccessor
      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 interface GridModeAccessor
      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 interface FieldGapAccessor
      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 interface FieldWidthAccessor
      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 interface FieldHeightAccessor
      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 interface GridHeightAccessor
      Returns:
      The grid height stored by the grid height property.