public Shape createPoint(Point2D point){
  GeneralPath path=new GeneralPath();
  path.moveTo((float)(point.getX()),(float)(point.getY() - size / 2));
  path.lineTo((float)(point.getX() + size / 2),(float)(point.getY() + size / 2));
  path.lineTo((float)(point.getX() - size / 2),(float)(point.getY() + size / 2));
  path.lineTo((float)(point.getX()),(float)(point.getY() - size / 2));
  return path;
}

public Shape createPoint ( Point2D point ) { GeneralPath path = new GeneralPath ( ) ; path . moveTo ( ( float ) ( point . getX ( ) ) , ( float ) ( point . getY ( ) - size / 2 ) ) ; path . lineTo ( ( float ) ( point . getX ( ) + size / 2 ) , ( float ) ( point . getY ( ) + size / 2 ) ) ; path . lineTo ( ( float ) ( point . getX ( ) - size / 2 ) , ( float ) ( point . getY ( ) + size / 2 ) ) ; path . lineTo ( ( float ) ( point . getX ( ) ) , ( float ) ( point . getY ( ) - size / 2 ) ) ; return path ; }
creates a shape representing a point .
