Class NodesInputPanel.NodeFinder

  • Enclosing class:
    NodesInputPanel

    private static class NodesInputPanel.NodeFinder
    extends java.lang.Object
    Utility class that can be used to find a node from coordinates in a "fast" way.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Graph graph  
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeFinder​(Graph graph)  
    • Field Detail

      • graph

        private Graph graph
    • Constructor Detail

      • NodeFinder

        public NodeFinder​(Graph graph)
        Parameters:
        graph -
    • Method Detail

      • findClosestNode

        public Node findClosestNode​(Point point)
        Parameters:
        point -
        Returns:
        the closest node to the given point, or null if no node is "close enough".