public int convertPointToAbsolutePosition(int relativePosition) {
        if (relativePosition < 0 || relativePosition >= length())
            throw new IllegalArgumentException("Relative position outside this range (" + relativePosition + ").");

        if (reversed)
            return upper - 1 - relativePosition;
        else
            return relativePosition + lower;
    }
public int convertPointToAbsolutePosition ( int relativePosition ) { if ( relativePosition < 0 || relativePosition >= length ( ) ) throw new IllegalArgumentException ( "Relative position outside this range (" + relativePosition + ")." ) ; if ( reversed ) return upper - 1 - relativePosition ; else return relativePosition + lower ; }
Converts relative point position to absolute position

@param relativePosition relative point position
@return absolute point position