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