Search in sources :

Example 6 with IViewNode

use of com.google.security.zynamics.zylib.gui.zygraph.nodes.IViewNode in project binnavi by google.

the class AbstractZyGraph method showNodes.

public void showNodes(final Collection<NodeType> toShow, final Collection<NodeType> toHide) {
    final IProximitySettings proxiSettings = getSettings().getProximitySettings();
    final Set<NodeType> neighbors = ProximityRangeCalculator.getNeighbors(this, toShow, proxiSettings.getProximityBrowsingChildren(), proxiSettings.getProximityBrowsingParents());
    toHide.removeAll(neighbors);
    for (final NodeType node : sortLayers(toHide)) {
        Preconditions.checkNotNull(node, "Error: The list of nodes to hide contained an invalid node");
        ((IViewNode<?>) node.getRawNode()).setVisible(false);
    }
    showNeighbors(toShow);
    notifyVisibilityListeners();
}
Also used : IProximitySettings(com.google.security.zynamics.zylib.gui.zygraph.settings.IProximitySettings) IViewNode(com.google.security.zynamics.zylib.gui.zygraph.nodes.IViewNode)

Aggregations

IViewNode (com.google.security.zynamics.zylib.gui.zygraph.nodes.IViewNode)6 ZyLabelContent (com.google.security.zynamics.zylib.gui.zygraph.realizers.ZyLabelContent)2 IProximitySettings (com.google.security.zynamics.zylib.gui.zygraph.settings.IProximitySettings)2 ZyGraphNode (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.nodes.ZyGraphNode)2 LinkedHashSet (java.util.LinkedHashSet)2 Node (y.base.Node)2 ICodeNode (com.google.security.zynamics.zylib.gui.zygraph.nodes.ICodeNode)1 IFunctionNode (com.google.security.zynamics.zylib.gui.zygraph.nodes.IFunctionNode)1 IGroupNode (com.google.security.zynamics.zylib.gui.zygraph.nodes.IGroupNode)1 ZyNodeData (com.google.security.zynamics.zylib.gui.zygraph.nodes.ZyNodeData)1 ZyLineContent (com.google.security.zynamics.zylib.gui.zygraph.realizers.ZyLineContent)1 ViewNodeAdapter (com.google.security.zynamics.zylib.gui.zygraph.wrappers.ViewNodeAdapter)1 IZyNodeRealizer (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.realizers.IZyNodeRealizer)1 ZyProximityNodeRealizer (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.realizers.ZyProximityNodeRealizer)1 Font (java.awt.Font)1 HashSet (java.util.HashSet)1