public int convertPointToRelativePosition ( int absolutePosition ) { if ( absolutePosition < lower || absolutePosition >= upper ) throw new IllegalArgumentException ( "Position outside this range (" + absolutePosition + ")." ) ; if ( reversed ) return upper - 1 - absolutePosition ; else return absolutePosition - lower ; }
Returns relative point position inside this range .