@Override
  protected String getNodeTip(final Node node) {
    final SingleGraph singleGraph = (SingleGraph) getGraph();
    final ZyGraph2DView view = (ZyGraph2DView) singleGraph.getView();

    if (CTooltipUpdater.isProximityNode(singleGraph, node)) {
      final IZyNodeRealizer realizer = (IZyNodeRealizer) singleGraph.getGraph().getRealizer(node);
      return TooltipGenerationHelper.generateProximityNodeTooltip(
          (ZyProximityNode<?>) realizer.getUserData().getNode());
    }

    if (view.isNodeSloppyPaintMode()) {
      final SingleDiffNode diffNode = singleGraph.getNode(node);
      final ZyLabelContent nodeContent = diffNode.getRealizer().getNodeContent();

      return HtmlGenerator.getHtml(nodeContent, Fonts.NORMAL_FONT.getName(), false, true);
    }

    return null;
  }
EditMode that handles node/edge tooltip generation for single graphs (primary/secondary).
java/ui/src/main/java/com/google/security/zynamics/bindiff/graph/editmode/SingleGraphEditMode.java