Class FieldDimensionImpl

java.lang.Object
org.refcodes.graphical.FieldDimensionImpl
All Implemented Interfaces:
FieldDimension, FieldGapAccessor, FieldHeightAccessor, FieldWidthAccessor

public class FieldDimensionImpl extends Object implements FieldDimension
The Class FieldDimensionImpl.
Author:
steiner
  • Field Details

    • _fieldWidth

      protected int _fieldWidth
    • _fieldHeight

      protected int _fieldHeight
    • _fieldGap

      protected int _fieldGap
  • Constructor Details

    • FieldDimensionImpl

      protected FieldDimensionImpl()
      Instantiates a new field dimension impl.
    • FieldDimensionImpl

      public FieldDimensionImpl(int aWidth, int aHeight, int aFieldGap)
      Instantiates a new field dimension impl.
      Parameters:
      aWidth - the width
      aHeight - the height
      aFieldGap - the field gap
  • Method Details

    • 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.
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object