public boolean isFeatureSelected(int recordNumber){
  if (recordNumber >= selectedFeatures.getLength()) {
    return false;
  }
  return selectedFeatures.getValue(recordNumber);
}

public boolean isFeatureSelected ( int recordNumber ) { if ( recordNumber >= selectedFeatures . getLength ( ) ) { return false ; } return selectedFeatures . getValue ( recordNumber ) ; }
determines if a specified record number is selected .
