@Override
  public void execute(final CNodeEnterState<NodeType, EdgeType> state, final MouseEvent event) {
    highlightNode(state.getNode());
    highlightEdges(state.getNode());
    updateTooltip(state.getGraph(), state.getNode());

    final AbstractZyGraph<NodeType, EdgeType> graph = state.getGraph();

    final NodeType node = graph.getNode(state.getNode());

    for (final IZyEditModeListener<NodeType, EdgeType> listener :
        state.getStateFactory().getListeners()) {
      try {
        listener.nodeEntered(node, event);
      } catch (final Exception exception) {
        // TODO: log this
      }
    }

    graph.updateViews();
  }
Updates the tooltip that is shown in the graph depending on the entered node.

@param graph The graph that contains the node.
@param node The node that is entered.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/actions/CDefaultNodeEnterAction.java