public boolean isConnecting(){
  return start != null && preview != null && preview.isVisible();
}

public boolean isConnecting ( ) { return start != null && preview != null && preview . isVisible ( ) ; }
returns true if the source terminal has been clicked and a new connection is currently being previewed .
