use of org.cytoscape.ding.customgraphics.bitmap.MissingImageCustomGraphics in project cytoscape-impl by cytoscape.
the class CustomGraphicsManagerImpl method reloadMissingImageCustomGraphics.
@Override
public Collection<MissingImageCustomGraphics> reloadMissingImageCustomGraphics() {
final Set<MissingImageCustomGraphics> reloadedSet = new HashSet<>();
for (final MissingImageCustomGraphics mcg : missingImageCustomGraphicsSet) {
final CyCustomGraphics cg = mcg.reloadImage();
if (cg != null)
reloadedSet.add(mcg);
}
missingImageCustomGraphicsSet.removeAll(reloadedSet);
return reloadedSet;
}
Aggregations