boolean isClicked(Point point)
    {
        boolean ret = false;
        if(start==null || end == null)
        {
            return false;
        }
        double dist = new Line2D.Float(start, end).ptLineDist(point);
        if (dist <= 2)
        {
            ret = true;
        }
        return ret;
    }