public Shape createPoint(Point2D point){
  Rectangle2D.Double pointMarker=new Rectangle2D.Double(0.0,0.0,size,size);
  pointMarker.x=(double)(point.getX() - (size / 2));
  pointMarker.y=(double)(point.getY() - (size / 2));
  return pointMarker;
}

public Shape createPoint ( Point2D point ) { Rectangle2D . Double pointMarker = new Rectangle2D . Double ( 0.0 , 0.0 , size , size ) ; pointMarker . x = ( double ) ( point . getX ( ) - ( size / 2 ) ) ; pointMarker . y = ( double ) ( point . getY ( ) - ( size / 2 ) ) ; return pointMarker ; }
creates a shape representing a point .
