private void populateContrastEnhancementGroup(GroupIdEnum channelGroup,FieldIdEnum nameField,GroupIdEnum contrastGroup,FieldIdEnum gammaField,GroupIdEnum methodField,SelectedChannelType channelType){
  String name="";
  if (channelType != null) {
    name=channelType.getChannelName();
  }
  fieldConfigVisitor.populateTextField(nameField,name);
  GroupConfigInterface contrastGrp=getGroup(contrastGroup);
  ContrastEnhancement contrastEnhancement=null;
  if (channelType != null) {
    contrastEnhancement=channelType.getContrastEnhancement();
  }
  contrastGrp.enable(contrastEnhancement != null);
  if (contrastEnhancement != null) {
    fieldConfigVisitor.populateField(gammaField,contrastEnhancement.getGammaValue());
    populateContrastMethod(contrastEnhancement,methodField);
  }
}

private void populateContrastEnhancementGroup ( GroupIdEnum channelGroup , FieldIdEnum nameField , GroupIdEnum contrastGroup , FieldIdEnum gammaField , GroupIdEnum methodField , SelectedChannelType channelType ) { String name = "" ; if ( channelType != null ) { name = channelType . getChannelName ( ) ; } fieldConfigVisitor . populateTextField ( nameField , name ) ; GroupConfigInterface contrastGrp = getGroup ( contrastGroup ) ; ContrastEnhancement contrastEnhancement = null ; if ( channelType != null ) { contrastEnhancement = channelType . getContrastEnhancement ( ) ; } contrastGrp . enable ( contrastEnhancement != null ) ; if ( contrastEnhancement != null ) { fieldConfigVisitor . populateField ( gammaField , contrastEnhancement . getGammaValue ( ) ) ; populateContrastMethod ( contrastEnhancement , methodField ) ; } }
populate contrast enhancement group .
