question: 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 ; }
target:  Creates a shape representing a point.