use of org.cytoscape.filter.internal.view.AbstractPanelController in project cytoscape-impl by cytoscape.
the class FilterIO method readTransformers.
@SuppressWarnings({ "unchecked", "rawtypes" })
public void readTransformers(File file, AbstractPanel panel) throws IOException {
try (BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file))) {
CyTransformerReader reader = serviceRegistrar.getService(CyTransformerReader.class);
NamedTransformer<CyNetwork, CyIdentifiable>[] transformers = (NamedTransformer<CyNetwork, CyIdentifiable>[]) reader.read(stream);
AbstractPanelController controller = panel.getController();
controller.addNamedTransformers(panel, transformers);
}
}
Aggregations