Search in sources :

Example 1 with SwingImageDisplayPanel

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;
        }
    }
}
Also used : JPanel(javax.swing.JPanel) Dataset(net.imagej.Dataset) SwingImageDisplayPanel(net.imagej.ui.swing.viewer.image.SwingImageDisplayPanel)

Aggregations

JPanel (javax.swing.JPanel)1 Dataset (net.imagej.Dataset)1 SwingImageDisplayPanel (net.imagej.ui.swing.viewer.image.SwingImageDisplayPanel)1