public void drawPoint(Graphics sc,IPoint p){
  double x1=p.getX();
  double y1=p.getY();
  sc.drawOval((int)x1 - 2,(int)y1 - 2,5,5);
}

public void drawPoint ( Graphics sc , IPoint p ) { double x1 = p . getX ( ) ; double y1 = p . getY ( ) ; sc . drawOval ( ( int ) x1 - 2 , ( int ) y1 - 2 , 5 , 5 ) ; }
core functionality to draw a point in the canvas .
