use of org.cytoscape.filter.internal.view.TransformerElementViewModel in project cytoscape-impl by cytoscape.
the class CompositeTransformerPanel method createViewModel.
private TransformerElementViewModel<TransformerPanel> createViewModel(Transformer<CyNetwork, CyIdentifiable> transformer) {
JComponent component = transformerPanelController.createView(parent, transformer, 0);
TransformerElementViewModel<TransformerPanel> viewModel = new TransformerElementViewModel<>(component, transformerPanelController, parent);
if (transformer instanceof ValidatableTransformer) {
transformerPanelController.getValidationManager().register((ValidatableTransformer<CyNetwork, CyIdentifiable>) transformer, viewModel);
}
return viewModel;
}
use of org.cytoscape.filter.internal.view.TransformerElementViewModel in project cytoscape-impl by cytoscape.
the class CompositeFilterPanel method createViewModel.
@SuppressWarnings("unchecked")
private TransformerElementViewModel<P> createViewModel(Filter<CyNetwork, CyIdentifiable> filter) {
JComponent component = filterPanelController.createView(parent, filter, depth + 1);
TransformerElementViewModel<P> viewModel = new TransformerElementViewModel<P>(component, filterPanelController, parent);
if (filter instanceof ValidatableTransformer) {
filterPanelController.getValidationManager().register((ValidatableTransformer<CyNetwork, CyIdentifiable>) filter, viewModel);
}
return viewModel;
}
Aggregations