Integrated ruler class that implements the line number display for text views.