use of sc.fiji.labkit.ui.LabelingComponent in project labkit-ui by juglab.
the class LabelingComponentDemo method initLabelingComponent.
private static JComponent initLabelingComponent(JFrame frame, ImageLabelingModel model) {
LabelingComponent labelingComponent = new LabelingComponent(frame, model);
frame.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
labelingComponent.close();
}
});
return labelingComponent;
}
use of sc.fiji.labkit.ui.LabelingComponent in project labkit-ui by juglab.
the class LabelingComponentHdf5Demo method initLabelingComponent.
private static JComponent initLabelingComponent(JFrame frame, String filename) {
ImageLabelingModel model = new ImageLabelingModel(new SpimDataInputImage(filename, 0));
LabelingComponent labelingComponent = new LabelingComponent(frame, model);
frame.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
labelingComponent.close();
}
});
return labelingComponent;
}
Aggregations