'Layout the control points'

def __pointsLayout(self):

    rect = self.__rect
    margins = self.__margins
    rect = rect.adjusted((- margins.left()), (- margins.top()), margins.right(), margins.bottom())
    center = rect.center()
    (cx, cy) = (center.x(), center.y())
    (left, top, right, bottom) = (rect.left(), rect.top(), rect.right(), rect.bottom())
    self.controlPoint(ControlPoint.Left).setPos(left, cy)
    self.controlPoint(ControlPoint.Right).setPos(right, cy)
    self.controlPoint(ControlPoint.Top).setPos(cx, top)
    self.controlPoint(ControlPoint.Bottom).setPos(cx, bottom)
    self.controlPoint(ControlPoint.TopLeft).setPos(left, top)
    self.controlPoint(ControlPoint.TopRight).setPos(right, top)
    self.controlPoint(ControlPoint.BottomLeft).setPos(left, bottom)
    self.controlPoint(ControlPoint.BottomRight).setPos(right, bottom)
