attributePainter selectSource method connection