use of cbit.vcell.mapping.MicroscopeMeasurement.GaussianConvolutionKernel in project vcell by virtualcell.
the class MicroscopeMeasurementPanel method refreshInterface.
protected void refreshInterface() {
if (simulationContext == null) {
return;
}
MicroscopeMeasurement microscopeMeasurement = simulationContext.getMicroscopeMeasurement();
nameTextField.setText(microscopeMeasurement.getName());
refreshFluorescenceSpeciesList(microscopeMeasurement);
refreshAllSpeciesList();
ConvolutionKernel ck = microscopeMeasurement.getConvolutionKernel();
if (ck instanceof ProjectionZKernel) {
rdbtnZprojection.setSelected(true);
BeanUtils.enableComponents(gaussianPsfPanel, false);
BeanUtils.enableComponents(experimentalPsfPanel, false);
} else if (ck instanceof GaussianConvolutionKernel) {
radioButtonGaussian.setSelected(true);
BeanUtils.enableComponents(gaussianPsfPanel, true);
BeanUtils.enableComponents(experimentalPsfPanel, false);
sigmaXYTextField.setText(((GaussianConvolutionKernel) ck).getSigmaXY_um().infix());
sigmaZTextField.setText(((GaussianConvolutionKernel) ck).getSigmaZ_um().infix());
} else if (ck instanceof ExperimentalPSF) {
rdbtnExperimental.setSelected(true);
BeanUtils.enableComponents(gaussianPsfPanel, false);
BeanUtils.enableComponents(experimentalPsfPanel, true);
}
pointSpreadFunctionsComboModel.removeAllElements();
if (simulationContext.getDataContext() != null) {
for (DataSymbol dataSymbol : simulationContext.getDataContext().getDataSymbols()) {
if (dataSymbol.getDataSymbolType().equals(DataSymbolType.POINT_SPREAD_FUNCTION)) {
pointSpreadFunctionsComboModel.addElement(dataSymbol.getName());
}
}
}
}
Aggregations