compute distance of point from line segment, or
Double.MAX_VALUE if perpendicular projection is outside segment; or
If pts on line are same, return distance from point
This method displays a popup menu, if there is one registered with the
Figure (the Figure's attributes are queried for Figure.POPUP_MENU which
is used to indicate an association of a popup menu with the Figure).