question: private void drawJoints ( final Graphics2D graphics , final Point [ ] points , final int xOffset , final int yOffset , final double scale ) { final int jointsize = 10 ; final Point [ ] newPoints = points . length > 1 ? Arrays . copyOf ( points , points . length - 1 ) : points ; for ( Point [ ] joints : routeOptimizer . getAllPoints ( newPoints ) ) { for ( final Point p : joints ) { graphics . fillOval ( ( int ) ( ( ( p . x - xOffset ) - ( jointsize / 2 ) / scale ) * scale ) , ( int ) ( ( ( p . y - yOffset ) - ( jointsize / 2 ) / scale ) * scale ) , jointsize , jointsize ) ; } } }
target:  Draws Points on the Map