Skip to content
Snippets Groups Projects
Commit 162dcd05 authored by gpawel's avatar gpawel
Browse files

SP-433

BIS-254: SOB-6: Allow setting rescaling parameters per user per plate - chosen values into tooltip

SVN: 27887
parent 6b35f7e9
No related branches found
No related tags found
No related merge requests found
......@@ -123,14 +123,30 @@ public class ChannelChooserPanel extends LayoutContainer
@Override
public void handleEvent(BaseEvent be)
{
String transformationCode =
transformationsComboBox.getSimpleValue().getItem().getCode();
InternalImageTransformationInfo selectedTransformation =
transformationsComboBox.getSimpleValue().getItem();
String transformationCode = selectedTransformation.getCode();
defaultChannelState.setDefaultTransformation(getSelectedValues().get(0),
transformationCode);
changeTransformationSettingsButtonVisibility(true, false);
IntensityRange intensityRange =
defaultChannelState.tryGetIntensityRange(getSelectedValues().get(0));
notifySelectionListeners(getSelectedValues(),
tryGetSelectedTransformationCode(false),
defaultChannelState.tryGetIntensityRange(getSelectedValues().get(0)));
tryGetSelectedTransformationCode(false), intensityRange);
String updatedTooltip = selectedTransformation.getLabel();
if (ScreeningConstants.USER_DEFINED_RESCALING_CODE
.equalsIgnoreCase(transformationCode))
{
updatedTooltip +=
" ["
+ (intensityRange == null ? "undefined" : intensityRange
.getBlackPoint()
+ " - "
+ intensityRange.getWhitePoint()) + "]";
}
transformationsComboBox.setToolTip(updatedTooltip);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment