Search in sources :

Example 1 with MissingImageCustomGraphics

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;
}
Also used : CyCustomGraphics(org.cytoscape.view.presentation.customgraphics.CyCustomGraphics) MissingImageCustomGraphics(org.cytoscape.ding.customgraphics.bitmap.MissingImageCustomGraphics) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 MissingImageCustomGraphics (org.cytoscape.ding.customgraphics.bitmap.MissingImageCustomGraphics)1 CyCustomGraphics (org.cytoscape.view.presentation.customgraphics.CyCustomGraphics)1