basicSetStartPoint(anchor); basicSetEndPoint(lead); invalidate();
if (! isClosed() && getNodeCount() >= 2) { basicSetStartPoint(anchor); basicSetEndPoint(lead); invalidate(); }
    public void basicSetBounds(Point2D.Double anchor, Point2D.Double lead) {        basicSetStartPoint(anchor);        basicSetEndPoint(lead);        invalidate();    }