config = new ConfigHCSImpl();
config.setScanAddOn(new ScanAddOnImp());
config.getScanAddOn().setDisplay(new DisplayImpl());
((IConfigHCS) config).setDimensionX(new DimensionHCSImpl());
// Creates one range for a new HCS config.
IRangeHCS rangeHCSToAdd = new RangeHCSImpl();
rangeHCSToAdd.setDimension(((IConfigHCS) config).getDimensionX());
((IConfigHCS) config).getDimensionX().getRangesXList().add(rangeHCSToAdd);
break;
case SCAN_K:
config = new ConfigKImpl();