case ComponentTransferFunction.LINEAR:
txfFunc = new LinearTransfer(function.getSlope(),
function.getIntercept());
break;
case ComponentTransferFunction.GAMMA:
txfFunc = new GammaTransfer(function.getAmplitude(),
function.getExponent(),
function.getOffset());
break;
default:
// Should never happen