Update XYChart.java

enhance the drawPoints()