Interface GroupModel.IndexPositionConverter

Enclosing class:
GroupModel

public static interface GroupModel.IndexPositionConverter
Interface to support layer based position-index conversion.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Convert the given index to the corresponding position on the given position layer.
    int
    convertPositionToIndex(int position)
    Convert the given position on the given position layer to the corresponding index.
  • Method Details

    • convertPositionToIndex

      int convertPositionToIndex(int position)
      Convert the given position on the given position layer to the corresponding index.
      Parameters:
      position - The position to convert.
      Returns:
      The index for the given position.
      Since:
      2.0
    • convertIndexToPosition

      int convertIndexToPosition(int index)
      Convert the given index to the corresponding position on the given position layer.
      Parameters:
      index - The index to convert.
      Returns:
      The position on the position layer for the given index.
      Since:
      2.0