Class EndOffEnd

    • Constructor Summary

      Constructors 
      Constructor Description
      EndOffEnd​(int itemIndex, double offsetFromEnd)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(TargetPositionVisitor visitor)
      Visitor Pattern: prevents type-checking the implementation
      TargetPosition clamp​(int size)
      Insures this position's item index is between 0 and size
      TargetPosition scrollBy​(double delta)  
      TargetPosition transformByChange​(int pos, int removedSize, int addedSize)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • itemIndex

        final int itemIndex
      • offsetFromEnd

        final double offsetFromEnd
    • Constructor Detail

      • EndOffEnd

        EndOffEnd​(int itemIndex,
                  double offsetFromEnd)
    • 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