use of net.imagej.ui.swing.viewer.image.SwingImageDisplayPanel in project vcell by virtualcell.
the class CompareView method setContent.
@Override
public void setContent(DisplayPanel displayPanel) {
for (int i = 0; i < panels.size(); i++) {
if (i >= datasets.size())
break;
JPanel panel = panels.get(i);
if (panel.getComponentCount() == 0) {
SwingImageDisplayPanel imagePanel = (SwingImageDisplayPanel) displayPanel;
Dataset dataset = datasets.get(i);
datasetImagePanelMap.put(dataset, imagePanel.getDisplay());
panel.add(imagePanel, BorderLayout.CENTER);
labels.get(i).setText(dataset.getName());
break;
}
}
}
Aggregations