use of org.cytoscape.io.write.VizmapWriterManager in project cytoscape-impl by cytoscape.
the class ExportVizmapTaskFactoryImpl method createTaskIterator.
@Override
public TaskIterator createTaskIterator() {
final VizmapWriterManager writerManager = serviceRegistrar.getService(VizmapWriterManager.class);
final CyApplicationManager cyApplicationManager = serviceRegistrar.getService(CyApplicationManager.class);
return new TaskIterator(2, new VizmapWriter(writerManager, cyApplicationManager, serviceRegistrar));
}
use of org.cytoscape.io.write.VizmapWriterManager in project cytoscape-impl by cytoscape.
the class ExportVizmapTaskFactoryImpl method createTaskIterator.
@Override
public TaskIterator createTaskIterator(File file) {
final Map<String, Object> m = new HashMap<>();
m.put("OutputFile", file);
final VizmapWriterManager writerManager = serviceRegistrar.getService(VizmapWriterManager.class);
final CyApplicationManager cyApplicationManager = serviceRegistrar.getService(CyApplicationManager.class);
final VizmapWriter writer = new VizmapWriter(writerManager, cyApplicationManager, serviceRegistrar);
writer.setDefaultFileFormatUsingFileExt(file);
final TunableSetter tunableSetter = serviceRegistrar.getService(TunableSetter.class);
return tunableSetter.createTaskIterator(new TaskIterator(2, writer), m);
}
Aggregations