protected void drawPoint(Graphics2D g,PointStyle pointStyle,double x,double y,Color color,Color borderColor){
  Shape pointShape=pointStyle.createShape(x,y);
  g.setColor(color);
  g.fill(pointShape);
  g.setColor(borderColor);
  g.draw(pointShape);
}

protected void drawPoint ( Graphics2D g , PointStyle pointStyle , double x , double y , Color color , Color borderColor ) { Shape pointShape = pointStyle . createShape ( x , y ) ; g . setColor ( color ) ; g . fill ( pointShape ) ; g . setColor ( borderColor ) ; g . draw ( pointShape ) ; }
this helper method can be used to draw a point in the given graphics object .
