def METHOD_NAME(self):
    """
    Draws a line and computes offsets for status points.
    """
    LinkItem.METHOD_NAME(self)
    try:
        if self._hovered:
            self.setPen(QtGui.QPen(QtCore.Qt.red, self._link._link_style["width"] + 1, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
        else:
            self.setPen(QtGui.QPen(QtGui.QColor(self._link._link_style["color"]), self._link._link_style["width"], self._link._link_style["type"], QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
    except:
        if self._hovered:
            self.setPen(QtGui.QPen(QtCore.Qt.red, self._pen_width + 1, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
        else:
            self.setPen(QtGui.QPen(QtCore.Qt.darkRed, self._pen_width, QtCore.Qt.SolidLine, QtCore.Qt.RoundCap, QtCore.Qt.RoundJoin))
    # get source to destination angle
    vector_angle = math.atan2(self.dy, self.dx)
    # get minimum vector and its angle
    rot_angle = - math.pi / 4.0
    vectrot = QtCore.QPointF(math.cos(vector_angle + rot_angle), math.sin(vector_angle + rot_angle))
    # get the rotated point positions
    angle_source = QtCore.QPointF(self.source.x() + self.dx / 2.0 + 15 * vectrot.x(), self.source.y() + self.dy / 2.0 + 15 * vectrot.y())
    angle_destination = QtCore.QPointF(self.destination.x() - self.dx / 2.0 - 15 * vectrot.x(), self.destination.y() - self.dy / 2.0 - 15 * vectrot.y())
    # draw the path
    self.path = QtGui.QPainterPath(self.source)
    self.path.lineTo(angle_source)
    self.path.lineTo(angle_destination)
    self.path.lineTo(self.destination)
    self.setPath(self.path)
    # set the interface status points positions
    scale_vect = QtCore.QPointF(angle_source.x() - self.source.x(), angle_source.y() - self.source.y())
    scale_vect_diag = math.sqrt(scale_vect.x() ** 2 + scale_vect.y() ** 2)
    scale_coef = scale_vect_diag / 40.0
    self.source_point = QtCore.QPointF(self.source.x() + scale_vect.x() / scale_coef, self.source.y() + scale_vect.y() / scale_coef)
    self.destination_point = QtCore.QPointF(self.destination.x() - scale_vect.x() / scale_coef, self.destination.y() - scale_vect.y() / scale_coef)