Class MinDistanceTo

    • Field Detail

      • itemIndex

        final int itemIndex
    • Constructor Detail

      • MinDistanceTo

        MinDistanceTo​(int itemIndex,
                      Offset minY,
                      Offset maxY)
      • MinDistanceTo

        public MinDistanceTo​(int itemIndex)
    • Method Detail

      • transformByChange

        public TargetPosition transformByChange​(int pos,
                                                int removedSize,
                                                int addedSize)
        Description copied from interface: TargetPosition
        When the list of items, those displayed in the viewport, and those that are not, are modified, transforms this change to account for those modifications.
        Specified by:
        transformByChange in interface TargetPosition
        Parameters:
        pos - the cell index where the change begins
        removedSize - the amount of cells that were removed, starting from pos
        addedSize - the amount of cells that were added, starting from pos