* @param Evidence evidence value to return color for * @return Color which corresponds to specified Evidence value. * @note Globals: none * @note Exceptions: none * @note History: Thu Mar 21 15:24:52 1991, DSJ, Created. */
| 1510 | * @note History: Thu Mar 21 15:24:52 1991, DSJ, Created. |
| 1511 | */ |
| 1512 | ScrollView::Color GetMatchColorFor(FLOAT32 Evidence) { |
| 1513 | assert (Evidence >= 0.0); |
| 1514 | assert (Evidence <= 1.0); |
| 1515 | |
| 1516 | if (Evidence >= 0.90) |
| 1517 | return ScrollView::WHITE; |
| 1518 | else if (Evidence >= 0.75) |
| 1519 | return ScrollView::GREEN; |
| 1520 | else if (Evidence >= 0.50) |
| 1521 | return ScrollView::RED; |
| 1522 | else |
| 1523 | return ScrollView::BLUE; |
| 1524 | } /* GetMatchColorFor */ |
| 1525 | |
| 1526 | /** |
| 1527 | * This routine returns (in Fill) the specification of |
no outgoing calls
no test coverage detected