Add a cursor marker painter.

Draws just a line.
Add method to sort marker data.