* Stop listening to a config and its elements.
*/
public void stopListening() {
if (config != null) {
Config1DModel configModel = (Config1DModel) config;
configModel.removeListener(listenerConfig1D);
Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
dimension1DModel.removeListener(listenerDimension1D);
for (IActuator actuator : dimension1DModel.getActuatorsList()) {
((ActuatorModel) actuator).removeListener(listenerActuator);
}