private Double clickDistance(Node node,final float x,final float y){
  return clickDistance(node,x,y,node.isTagged() ? DataStyle.getCurrent().nodeToleranceValue : DataStyle.getCurrent().wayToleranceValue / 2);
}

private Double clickDistance ( Node node , final float x , final float y ) { return clickDistance ( node , x , y , node . isTagged ( ) ? DataStyle . getCurrent ( ) . nodeToleranceValue : DataStyle . getCurrent ( ) . wayToleranceValue / 2 ) ; }
calculates the on - screen distance between a node and the screen coordinate of a click . returns null if the node was outside the click tolerance .
