Class FilterVerticesJob<V extends VisualVertex,​E extends VisualEdge<V>>

  • Type Parameters:
    V - the vertex type
    E - the edge type
    All Implemented Interfaces:
    GraphJob

    public class FilterVerticesJob<V extends VisualVertex,​E extends VisualEdge<V>>
    extends AbstractGraphVisibilityTransitionJob<V,​E>
    Uses the given filter to fade out vertices that do not pass. Vertices that pass the filter will be included in the graph. Not only will passing vertices be included, but so too will any vertices reachable from those vertices.

    This job will update the graph so that any previously filtered vertices will be put back into the graph.

    • Constructor Detail

      • FilterVerticesJob

        public FilterVerticesJob​(GraphViewer<V,​E> viewer,
                                 FilteringVisualGraph<V,​E> graph,
                                 java.util.function.Predicate<V> filter,
                                 boolean remove)
        Constructor
        Parameters:
        viewer - the viewer upon which to operate
        graph - the graph to filter
        filter - the predicate used to determine what passes the filter
        remove - true signals to remove the vertices from the view; false signals to leave them visible, but faded to show that they failed the filter