public int findJulianDayFromPosition(int position){
  if (mRowInfo == null || position < 0) {
    return 0;
  }
  int len=mRowInfo.size();
  if (position >= len)   return 0;
  for (int index=position; index >= 0; index--) {
    RowInfo row=mRowInfo.get(index);
    if (row.mType == TYPE_DAY) {
      return row.mDay;
    }
  }
  return 0;
}

public int findJulianDayFromPosition ( int position ) { if ( mRowInfo == null || position < 0 ) { return 0 ; } int len = mRowInfo . size ( ) ; if ( position >= len ) return 0 ; for ( int index = position ; index >= 0 ; index -- ) { RowInfo row = mRowInfo . get ( index ) ; if ( row . mType == TYPE_DAY ) { return row . mDay ; } } return 0 ; }
finds the julian day containing the event at the given position .
