public int getLocation(Object value) {
    int		result;
    int		i;
    String	valueStr;

    result = 0;

    valueStr = value.toString();
    for (i = 0; i < width(); i++) {
      if ((getValue(i)).equals(valueStr)) {
	result = ((int) m_Min) + i;
	break;
      }
    }

    return result;
  }
public int getLocation ( Object value ) { int result ; int i ; String valueStr ; result = 0 ; valueStr = value . toString ( ) ; for ( i = 0 ; i < width ( ) ; i ++ ) { if ( ( getValue ( i ) ) . equals ( valueStr ) ) { result = ( ( int ) m_Min ) + i ; break ; } } return result ; }
returns the closest index for the given value in the dimension.

@param value	the value to get the index for
@return		the closest index in the dimension