public static void restoreDefaultSetting(String key){
  Object object=DEFAULT_MAP.get(key);
  if (object != null) {
    if (object instanceof String) {
      SIMBRAIN_PREFERENCES.put(key,(String)object);
    }
 else     if (object instanceof Double) {
      SIMBRAIN_PREFERENCES.putDouble(key,(Double)object);
    }
 else     if (object instanceof Integer) {
      SIMBRAIN_PREFERENCES.putInt(key,(Integer)object);
    }
 else     if (object instanceof Float) {
      SIMBRAIN_PREFERENCES.putFloat(key,(Float)object);
    }
  }
}

public static void restoreDefaultSetting ( String key ) { Object object = DEFAULT_MAP . get ( key ) ; if ( object != null ) { if ( object instanceof String ) { SIMBRAIN_PREFERENCES . put ( key , ( String ) object ) ; } else if ( object instanceof Double ) { SIMBRAIN_PREFERENCES . putDouble ( key , ( Double ) object ) ; } else if ( object instanceof Integer ) { SIMBRAIN_PREFERENCES . putInt ( key , ( Integer ) object ) ; } else if ( object instanceof Float ) { SIMBRAIN_PREFERENCES . putFloat ( key , ( Float ) object ) ; } } }
reverts a setting to its default value .
